[dbo].[StorageCalculationType]
CREATE TABLE [dbo].[StorageCalculationType]
(
[StorageCalculationTypePriKey] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Type] [varchar] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageCalculationType] ADD CONSTRAINT [PK_StorageCalculationType] PRIMARY KEY NONCLUSTERED ([StorageCalculationTypePriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageCalculationType] ADD CONSTRAINT [IX_StorageCalculationType_Description] UNIQUE NONCLUSTERED ([Description]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[StorageCalculationType] TO [MssExec]
GRANT INSERT ON [dbo].[StorageCalculationType] TO [MssExec]
GRANT DELETE ON [dbo].[StorageCalculationType] TO [MssExec]
GRANT UPDATE ON [dbo].[StorageCalculationType] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Description of the calculation type.', 'SCHEMA', N'dbo', 'TABLE', N'StorageCalculationType', 'COLUMN', N'Description'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key.', 'SCHEMA', N'dbo', 'TABLE', N'StorageCalculationType', 'COLUMN', N'StorageCalculationTypePriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Type for the description.', 'SCHEMA', N'dbo', 'TABLE', N'StorageCalculationType', 'COLUMN', N'Type'
GO