[dbo].[CustomerStatementRunCustomerClass]
CREATE TABLE [dbo].[CustomerStatementRunCustomerClass]
(
[CustomerStatementRunCustomerClassID] [int] NOT NULL IDENTITY(1, 1),
[CustomerStatementRunFID] [int] NOT NULL,
[CustomerClass] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementRunCustomerClass] ADD CONSTRAINT [PK_CustomerStatementRunCustomerClass] PRIMARY KEY NONCLUSTERED ([CustomerStatementRunCustomerClassID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementRunCustomerClass] ADD CONSTRAINT [IX_CustomerStatementRunCustomerClass_CustomerClass] UNIQUE CLUSTERED ([CustomerStatementRunFID], [CustomerClass]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementRunCustomerClass] ADD CONSTRAINT [FK_CustomerStatementRunCustomerClass_CustomerStatementRun] FOREIGN KEY ([CustomerStatementRunFID]) REFERENCES [dbo].[CustomerStatementRun] ([CustomerStatementRunID])
GO
GRANT SELECT ON [dbo].[CustomerStatementRunCustomerClass] TO [MssExec]
GRANT INSERT ON [dbo].[CustomerStatementRunCustomerClass] TO [MssExec]
GRANT DELETE ON [dbo].[CustomerStatementRunCustomerClass] TO [MssExec]
GRANT UPDATE ON [dbo].[CustomerStatementRunCustomerClass] TO [MssExec]
GO