CREATE TABLE [dbo].[CPMaster]
(
[CPPriKey] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DateBasisFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CPMaster] ADD CONSTRAINT [PK_CPMaster] PRIMARY KEY CLUSTERED ([CPPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CPMaster] ADD CONSTRAINT [IX_CPMaster_Description] UNIQUE NONCLUSTERED ([Description]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CPMaster] ADD CONSTRAINT [FK_CPMaster_DateBasis] FOREIGN KEY ([DateBasisFID]) REFERENCES [dbo].[DateBasis] ([DateBasisID])
GO
GRANT SELECT ON [dbo].[CPMaster] TO [MssExec]
GRANT INSERT ON [dbo].[CPMaster] TO [MssExec]
GRANT DELETE ON [dbo].[CPMaster] TO [MssExec]
GRANT UPDATE ON [dbo].[CPMaster] TO [MssExec]
GO