
[dbo].[AccountProfileDocumentType]
CREATE TABLE [dbo].[AccountProfileDocumentType]
(
[AccountProfileDocumentTypeID] [int] NOT NULL IDENTITY(1, 1),
[AccountProfileDocumentGroupFID] [int] NOT NULL,
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_AccountProfileDocumentType_Inactive] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountProfileDocumentType] ADD CONSTRAINT [PK_AccountProfileDocumentType] PRIMARY KEY CLUSTERED ([AccountProfileDocumentTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountProfileDocumentType] ADD CONSTRAINT [IX_AccountProfileDocumentType_Description] UNIQUE NONCLUSTERED ([Description]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountProfileDocumentType] ADD CONSTRAINT [FK_AccountProfileDocumentType_AccountProfileDocumentGroup] FOREIGN KEY ([AccountProfileDocumentGroupFID]) REFERENCES [dbo].[AccountProfileDocumentGroup] ([AccountProfileDocumentGroupID])
GO
GRANT SELECT ON [dbo].[AccountProfileDocumentType] TO [MssExec]
GRANT INSERT ON [dbo].[AccountProfileDocumentType] TO [MssExec]
GRANT DELETE ON [dbo].[AccountProfileDocumentType] TO [MssExec]
GRANT UPDATE ON [dbo].[AccountProfileDocumentType] TO [MssExec]
GO