
[dbo].[CustomerStatementDocumentType]
CREATE TABLE [dbo].[CustomerStatementDocumentType]
(
[CustomerStatementDocumentTypeID] [int] NOT NULL IDENTITY(1, 1),
[DocumentTypeID] [smallint] NOT NULL,
[DocumentType] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SortOrder] [int] NOT NULL CONSTRAINT [DF_CustomerStatementDocumentType_SortOrder] DEFAULT ((0)),
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementDocumentType] ADD CONSTRAINT [PK_CustomerStatementDocumentType] PRIMARY KEY NONCLUSTERED ([CustomerStatementDocumentTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementDocumentType] ADD CONSTRAINT [IX_CustomerStatementDocumentType_DocumentTypeID] UNIQUE CLUSTERED ([DocumentTypeID], [DocumentType]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[CustomerStatementDocumentType] TO [MssExec]
GRANT INSERT ON [dbo].[CustomerStatementDocumentType] TO [MssExec]
GRANT DELETE ON [dbo].[CustomerStatementDocumentType] TO [MssExec]
GRANT UPDATE ON [dbo].[CustomerStatementDocumentType] TO [MssExec]
GO