CREATE TABLE [dbo].[PayType]
(
[PayTypeID] [int] NOT NULL IDENTITY(1, 1),
[PayName] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PayType] ADD CONSTRAINT [PK_PayType] PRIMARY KEY NONCLUSTERED ([PayTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PayType] ADD CONSTRAINT [IX_PayType_PayName] UNIQUE NONCLUSTERED ([PayName]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[PayType] TO [MssExec]
GRANT INSERT ON [dbo].[PayType] TO [MssExec]
GRANT DELETE ON [dbo].[PayType] TO [MssExec]
GRANT UPDATE ON [dbo].[PayType] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'The description of the pay type.', 'SCHEMA', N'dbo', 'TABLE', N'PayType', 'COLUMN', N'PayName'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'PayType', 'COLUMN', N'PayTypeID'
GO