Tables [dbo].[DocumentAutoUploadRuleDetail]
Properties
PropertyValue
Row Count (~)21
Created9:05:45 AM Friday, November 22, 2024
Last Modified9:05:46 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_DocumentAutoUploadRuleDetail: DocumentAutoUploadRuleDetailIDDocumentAutoUploadRuleDetailIDint4
No
1 - 1
Foreign Keys FK_DocumentAutoUploadRuleDetail_DocumentAutoUploadRule: [dbo].[DocumentAutoUploadRule].DocumentAutoUploadRuleFIDIndexes IX_DocumentAutoUploadRuleDetail_Rule: DocumentAutoUploadRuleFID\SortOrderDocumentAutoUploadRuleFIDint4
No
Foreign Keys FK_DocumentAutoUploadRuleDetail_DocumentAutoUploadRuleItem: [dbo].[DocumentAutoUploadRuleItem].DocumentAutoUploadRuleItemFIDIndexes IX_DocumentAutoUploadRuleDetail_Item: DocumentAutoUploadRuleItemFIDDocumentAutoUploadRuleItemFIDint4
No
Indexes IX_DocumentAutoUploadRuleDetail_Rule: DocumentAutoUploadRuleFID\SortOrderSortOrderint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_DocumentAutoUploadRuleDetail: DocumentAutoUploadRuleDetailIDPK_DocumentAutoUploadRuleDetailDocumentAutoUploadRuleDetailID
Yes
IX_DocumentAutoUploadRuleDetail_RuleDocumentAutoUploadRuleFID, SortOrder
Yes
IX_DocumentAutoUploadRuleDetail_ItemDocumentAutoUploadRuleItemFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_DocumentAutoUploadRuleDetail_DocumentAutoUploadRuleCascadeDocumentAutoUploadRuleFID->[dbo].[DocumentAutoUploadRule].[DocumentAutoUploadRuleID]
FK_DocumentAutoUploadRuleDetail_DocumentAutoUploadRuleItemCascadeDocumentAutoUploadRuleItemFID->[dbo].[DocumentAutoUploadRuleItem].[DocumentAutoUploadRuleItemID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[DocumentAutoUploadRuleDetail]
(
[DocumentAutoUploadRuleDetailID] [int] NOT NULL IDENTITY(1, 1),
[DocumentAutoUploadRuleFID] [int] NOT NULL,
[DocumentAutoUploadRuleItemFID] [int] NOT NULL,
[SortOrder] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetail] ADD CONSTRAINT [PK_DocumentAutoUploadRuleDetail] PRIMARY KEY CLUSTERED  ([DocumentAutoUploadRuleDetailID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DocumentAutoUploadRuleDetail_Rule] ON [dbo].[DocumentAutoUploadRuleDetail] ([DocumentAutoUploadRuleFID], [SortOrder]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DocumentAutoUploadRuleDetail_Item] ON [dbo].[DocumentAutoUploadRuleDetail] ([DocumentAutoUploadRuleItemFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetail] ADD CONSTRAINT [FK_DocumentAutoUploadRuleDetail_DocumentAutoUploadRule] FOREIGN KEY ([DocumentAutoUploadRuleFID]) REFERENCES [dbo].[DocumentAutoUploadRule] ([DocumentAutoUploadRuleID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetail] ADD CONSTRAINT [FK_DocumentAutoUploadRuleDetail_DocumentAutoUploadRuleItem] FOREIGN KEY ([DocumentAutoUploadRuleItemFID]) REFERENCES [dbo].[DocumentAutoUploadRuleItem] ([DocumentAutoUploadRuleItemID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[DocumentAutoUploadRuleDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[DocumentAutoUploadRuleDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[DocumentAutoUploadRuleDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[DocumentAutoUploadRuleDetail] TO [MssExec]
GO
Uses
Used By