Tables [dbo].[DocumentAutoDownloadRuleDetailDocumentType]
Properties
PropertyValue
Row Count (~)0
Created9:18:05 AM Friday, November 8, 2024
Last Modified9:18:05 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_DocumentAutoDownloadRuleDetailDocumentType: DocumentAutoDownloadRuleDetailDocumentTypeIDDocumentAutoDownloadRuleDetailDocumentTypeIDint4
No
1 - 1
Foreign Keys FK_DocumentAutoDownloadRuleDetailDocumentType_DocumentAutoDownloadRuleDetail: [dbo].[DocumentAutoDownloadRuleDetail].DocumentAutoDownloadRuleDetailFIDIndexes IX_DocumentAutoDownloadRuleDetailDocumentType_RuleDetail: DocumentAutoDownloadRuleDetailFID\DocumentTypeFIDDocumentAutoDownloadRuleDetailFIDint4
No
Foreign Keys FK_DocumentAutoDownloadRuleDetailDocumentType_DocumentType: [dbo].[DocumentType].DocumentTypeFIDIndexes IX_DocumentAutoDownloadRuleDetailDocumentType_RuleDetail: DocumentAutoDownloadRuleDetailFID\DocumentTypeFIDIndexes IX_DocumentAutoDownloadRuleDetailDocumentType_DocumentType: DocumentTypeFIDDocumentTypeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_DocumentAutoDownloadRuleDetailDocumentType: DocumentAutoDownloadRuleDetailDocumentTypeIDPK_DocumentAutoDownloadRuleDetailDocumentTypeDocumentAutoDownloadRuleDetailDocumentTypeID
Yes
IX_DocumentAutoDownloadRuleDetailDocumentType_RuleDetailDocumentAutoDownloadRuleDetailFID, DocumentTypeFID
Yes
IX_DocumentAutoDownloadRuleDetailDocumentType_DocumentTypeDocumentTypeFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_DocumentAutoDownloadRuleDetailDocumentType_DocumentAutoDownloadRuleDetailCascadeDocumentAutoDownloadRuleDetailFID->[dbo].[DocumentAutoDownloadRuleDetail].[DocumentAutoDownloadRuleDetailID]
FK_DocumentAutoDownloadRuleDetailDocumentType_DocumentTypeCascadeDocumentTypeFID->[dbo].[DocumentType].[DocumentTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[DocumentAutoDownloadRuleDetailDocumentType]
(
[DocumentAutoDownloadRuleDetailDocumentTypeID] [int] NOT NULL IDENTITY(1, 1),
[DocumentAutoDownloadRuleDetailFID] [int] NOT NULL,
[DocumentTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoDownloadRuleDetailDocumentType] ADD CONSTRAINT [PK_DocumentAutoDownloadRuleDetailDocumentType] PRIMARY KEY CLUSTERED  ([DocumentAutoDownloadRuleDetailDocumentTypeID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DocumentAutoDownloadRuleDetailDocumentType_RuleDetail] ON [dbo].[DocumentAutoDownloadRuleDetailDocumentType] ([DocumentAutoDownloadRuleDetailFID], [DocumentTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DocumentAutoDownloadRuleDetailDocumentType_DocumentType] ON [dbo].[DocumentAutoDownloadRuleDetailDocumentType] ([DocumentTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoDownloadRuleDetailDocumentType] ADD CONSTRAINT [FK_DocumentAutoDownloadRuleDetailDocumentType_DocumentAutoDownloadRuleDetail] FOREIGN KEY ([DocumentAutoDownloadRuleDetailFID]) REFERENCES [dbo].[DocumentAutoDownloadRuleDetail] ([DocumentAutoDownloadRuleDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[DocumentAutoDownloadRuleDetailDocumentType] ADD CONSTRAINT [FK_DocumentAutoDownloadRuleDetailDocumentType_DocumentType] FOREIGN KEY ([DocumentTypeFID]) REFERENCES [dbo].[DocumentType] ([DocumentTypeID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[DocumentAutoDownloadRuleDetailDocumentType] TO [MssExec]
GRANT INSERT ON  [dbo].[DocumentAutoDownloadRuleDetailDocumentType] TO [MssExec]
GRANT DELETE ON  [dbo].[DocumentAutoDownloadRuleDetailDocumentType] TO [MssExec]
GRANT UPDATE ON  [dbo].[DocumentAutoDownloadRuleDetailDocumentType] TO [MssExec]
GO
Uses