Tables [dbo].[DocumentAutoDownloadRuleDetailShipmentType]
Properties
PropertyValue
Row Count (~)0
Created7:34:24 PM Tuesday, June 11, 2024
Last Modified7:34:24 PM Tuesday, June 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_DocumentAutoDownloadRuleDetailShipmentType: DocumentAutoDownloadRuleDetailShipmentTypeIDDocumentAutoDownloadRuleDetailShipmentTypeIDint4
No
1 - 1
Foreign Keys FK_DocumentAutoDownloadRuleDetailShipmentType_DocumentAutoDownloadRuleDetail: [dbo].[DocumentAutoDownloadRuleDetail].DocumentAutoDownloadRuleDetailFIDIndexes IX_DocumentAutoDownloadRuleDetailShipmentType_RuleDetail: DocumentAutoDownloadRuleDetailFID\ShipmentTypeFIDDocumentAutoDownloadRuleDetailFIDint4
No
Foreign Keys FK_DocumentAutoDownloadRuleDetailShipmentType_ShipmentType: [dbo].[ShipmentType].ShipmentTypeFIDIndexes IX_DocumentAutoDownloadRuleDetailShipmentType_RuleDetail: DocumentAutoDownloadRuleDetailFID\ShipmentTypeFIDIndexes IX_DocumentAutoDownloadRuleDetailShipmentType_ShipmentType: ShipmentTypeFIDShipmentTypeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_DocumentAutoDownloadRuleDetailShipmentType: DocumentAutoDownloadRuleDetailShipmentTypeIDPK_DocumentAutoDownloadRuleDetailShipmentTypeDocumentAutoDownloadRuleDetailShipmentTypeID
Yes
IX_DocumentAutoDownloadRuleDetailShipmentType_RuleDetailDocumentAutoDownloadRuleDetailFID, ShipmentTypeFID
Yes
IX_DocumentAutoDownloadRuleDetailShipmentType_ShipmentTypeShipmentTypeFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_DocumentAutoDownloadRuleDetailShipmentType_DocumentAutoDownloadRuleDetailCascadeDocumentAutoDownloadRuleDetailFID->[dbo].[DocumentAutoDownloadRuleDetail].[DocumentAutoDownloadRuleDetailID]
FK_DocumentAutoDownloadRuleDetailShipmentType_ShipmentTypeCascadeShipmentTypeFID->[dbo].[ShipmentType].[ShipmentTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[DocumentAutoDownloadRuleDetailShipmentType]
(
[DocumentAutoDownloadRuleDetailShipmentTypeID] [int] NOT NULL IDENTITY(1, 1),
[DocumentAutoDownloadRuleDetailFID] [int] NOT NULL,
[ShipmentTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoDownloadRuleDetailShipmentType] ADD CONSTRAINT [PK_DocumentAutoDownloadRuleDetailShipmentType] PRIMARY KEY CLUSTERED  ([DocumentAutoDownloadRuleDetailShipmentTypeID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DocumentAutoDownloadRuleDetailShipmentType_RuleDetail] ON [dbo].[DocumentAutoDownloadRuleDetailShipmentType] ([DocumentAutoDownloadRuleDetailFID], [ShipmentTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DocumentAutoDownloadRuleDetailShipmentType_ShipmentType] ON [dbo].[DocumentAutoDownloadRuleDetailShipmentType] ([ShipmentTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoDownloadRuleDetailShipmentType] ADD CONSTRAINT [FK_DocumentAutoDownloadRuleDetailShipmentType_DocumentAutoDownloadRuleDetail] FOREIGN KEY ([DocumentAutoDownloadRuleDetailFID]) REFERENCES [dbo].[DocumentAutoDownloadRuleDetail] ([DocumentAutoDownloadRuleDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[DocumentAutoDownloadRuleDetailShipmentType] ADD CONSTRAINT [FK_DocumentAutoDownloadRuleDetailShipmentType_ShipmentType] FOREIGN KEY ([ShipmentTypeFID]) REFERENCES [dbo].[ShipmentType] ([ShipmentTypeID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[DocumentAutoDownloadRuleDetailShipmentType] TO [MssExec]
GRANT INSERT ON  [dbo].[DocumentAutoDownloadRuleDetailShipmentType] TO [MssExec]
GRANT DELETE ON  [dbo].[DocumentAutoDownloadRuleDetailShipmentType] TO [MssExec]
GRANT UPDATE ON  [dbo].[DocumentAutoDownloadRuleDetailShipmentType] TO [MssExec]
GO
Uses