Tables [dbo].[DocumentAutoUploadRuleDetailShipmentType]
Properties
PropertyValue
Row Count (~)10
Created9:14:51 AM Thursday, May 23, 2024
Last Modified9:14:52 AM Thursday, May 23, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_DocumentAutoUploadRuleDetailShipmentType: DocumentAutoUploadRuleDetailShipmentTypeIDDocumentAutoUploadRuleDetailShipmentTypeIDint4
No
1 - 1
Foreign Keys FK_DocumentAutoUploadRuleDetailShipmentType_DocumentAutoUploadRuleDetail: [dbo].[DocumentAutoUploadRuleDetail].DocumentAutoUploadRuleDetailFIDIndexes IX_DocumentAutoUploadRuleDetailShipmentType_RuleDetail: DocumentAutoUploadRuleDetailFID\ShipmentTypeFIDDocumentAutoUploadRuleDetailFIDint4
No
Foreign Keys FK_DocumentAutoUploadRuleDetailShipmentType_ShipmentType: [dbo].[ShipmentType].ShipmentTypeFIDIndexes IX_DocumentAutoUploadRuleDetailShipmentType_RuleDetail: DocumentAutoUploadRuleDetailFID\ShipmentTypeFIDIndexes IX_DocumentAutoUploadRuleDetailShipmentType_ShipmentType: ShipmentTypeFIDShipmentTypeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_DocumentAutoUploadRuleDetailShipmentType: DocumentAutoUploadRuleDetailShipmentTypeIDPK_DocumentAutoUploadRuleDetailShipmentTypeDocumentAutoUploadRuleDetailShipmentTypeID
Yes
IX_DocumentAutoUploadRuleDetailShipmentType_RuleDetailDocumentAutoUploadRuleDetailFID, ShipmentTypeFID
Yes
IX_DocumentAutoUploadRuleDetailShipmentType_ShipmentTypeShipmentTypeFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_DocumentAutoUploadRuleDetailShipmentType_DocumentAutoUploadRuleDetailCascadeDocumentAutoUploadRuleDetailFID->[dbo].[DocumentAutoUploadRuleDetail].[DocumentAutoUploadRuleDetailID]
FK_DocumentAutoUploadRuleDetailShipmentType_ShipmentTypeCascadeShipmentTypeFID->[dbo].[ShipmentType].[ShipmentTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[DocumentAutoUploadRuleDetailShipmentType]
(
[DocumentAutoUploadRuleDetailShipmentTypeID] [int] NOT NULL IDENTITY(1, 1),
[DocumentAutoUploadRuleDetailFID] [int] NOT NULL,
[ShipmentTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetailShipmentType] ADD CONSTRAINT [PK_DocumentAutoUploadRuleDetailShipmentType] PRIMARY KEY CLUSTERED  ([DocumentAutoUploadRuleDetailShipmentTypeID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DocumentAutoUploadRuleDetailShipmentType_RuleDetail] ON [dbo].[DocumentAutoUploadRuleDetailShipmentType] ([DocumentAutoUploadRuleDetailFID], [ShipmentTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DocumentAutoUploadRuleDetailShipmentType_ShipmentType] ON [dbo].[DocumentAutoUploadRuleDetailShipmentType] ([ShipmentTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetailShipmentType] ADD CONSTRAINT [FK_DocumentAutoUploadRuleDetailShipmentType_DocumentAutoUploadRuleDetail] FOREIGN KEY ([DocumentAutoUploadRuleDetailFID]) REFERENCES [dbo].[DocumentAutoUploadRuleDetail] ([DocumentAutoUploadRuleDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetailShipmentType] ADD CONSTRAINT [FK_DocumentAutoUploadRuleDetailShipmentType_ShipmentType] FOREIGN KEY ([ShipmentTypeFID]) REFERENCES [dbo].[ShipmentType] ([ShipmentTypeID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[DocumentAutoUploadRuleDetailShipmentType] TO [MssExec]
GRANT INSERT ON  [dbo].[DocumentAutoUploadRuleDetailShipmentType] TO [MssExec]
GRANT DELETE ON  [dbo].[DocumentAutoUploadRuleDetailShipmentType] TO [MssExec]
GRANT UPDATE ON  [dbo].[DocumentAutoUploadRuleDetailShipmentType] TO [MssExec]
GO
Uses