Tables [dbo].[DocumentAutoUploadRuleDetailDocumentType]
Properties
PropertyValue
Row Count (~)5
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_DocumentAutoUploadRuleDetailDocumentType: DocumentAutoUploadRuleDetailDocumentTypeIDDocumentAutoUploadRuleDetailDocumentTypeIDint4
No
1 - 1
Foreign Keys FK_DocumentAutoUploadRuleDetailDocumentType_DocumentAutoUploadRuleDetail: [dbo].[DocumentAutoUploadRuleDetail].DocumentAutoUploadRuleDetailFIDIndexes IX_DocumentAutoUploadRuleDetailDocumentType_RuleDetail: DocumentAutoUploadRuleDetailFID\DocumentTypeFIDDocumentAutoUploadRuleDetailFIDint4
No
Foreign Keys FK_DocumentAutoUploadRuleDetailDocumentType_DocumentType: [dbo].[DocumentType].DocumentTypeFIDIndexes IX_DocumentAutoUploadRuleDetailDocumentType_RuleDetail: DocumentAutoUploadRuleDetailFID\DocumentTypeFIDIndexes IX_DocumentAutoUploadRuleDetailDocumentType_DocumentType: DocumentTypeFIDDocumentTypeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_DocumentAutoUploadRuleDetailDocumentType: DocumentAutoUploadRuleDetailDocumentTypeIDPK_DocumentAutoUploadRuleDetailDocumentTypeDocumentAutoUploadRuleDetailDocumentTypeID
Yes
IX_DocumentAutoUploadRuleDetailDocumentType_RuleDetailDocumentAutoUploadRuleDetailFID, DocumentTypeFID
Yes
IX_DocumentAutoUploadRuleDetailDocumentType_DocumentTypeDocumentTypeFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_DocumentAutoUploadRuleDetailDocumentType_DocumentAutoUploadRuleDetailCascadeDocumentAutoUploadRuleDetailFID->[dbo].[DocumentAutoUploadRuleDetail].[DocumentAutoUploadRuleDetailID]
FK_DocumentAutoUploadRuleDetailDocumentType_DocumentTypeCascadeDocumentTypeFID->[dbo].[DocumentType].[DocumentTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[DocumentAutoUploadRuleDetailDocumentType]
(
[DocumentAutoUploadRuleDetailDocumentTypeID] [int] NOT NULL IDENTITY(1, 1),
[DocumentAutoUploadRuleDetailFID] [int] NOT NULL,
[DocumentTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetailDocumentType] ADD CONSTRAINT [PK_DocumentAutoUploadRuleDetailDocumentType] PRIMARY KEY CLUSTERED  ([DocumentAutoUploadRuleDetailDocumentTypeID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DocumentAutoUploadRuleDetailDocumentType_RuleDetail] ON [dbo].[DocumentAutoUploadRuleDetailDocumentType] ([DocumentAutoUploadRuleDetailFID], [DocumentTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DocumentAutoUploadRuleDetailDocumentType_DocumentType] ON [dbo].[DocumentAutoUploadRuleDetailDocumentType] ([DocumentTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetailDocumentType] ADD CONSTRAINT [FK_DocumentAutoUploadRuleDetailDocumentType_DocumentAutoUploadRuleDetail] FOREIGN KEY ([DocumentAutoUploadRuleDetailFID]) REFERENCES [dbo].[DocumentAutoUploadRuleDetail] ([DocumentAutoUploadRuleDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleDetailDocumentType] ADD CONSTRAINT [FK_DocumentAutoUploadRuleDetailDocumentType_DocumentType] FOREIGN KEY ([DocumentTypeFID]) REFERENCES [dbo].[DocumentType] ([DocumentTypeID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[DocumentAutoUploadRuleDetailDocumentType] TO [MssExec]
GRANT INSERT ON  [dbo].[DocumentAutoUploadRuleDetailDocumentType] TO [MssExec]
GRANT DELETE ON  [dbo].[DocumentAutoUploadRuleDetailDocumentType] TO [MssExec]
GRANT UPDATE ON  [dbo].[DocumentAutoUploadRuleDetailDocumentType] TO [MssExec]
GO
Uses