[dbo].[StorageRequirement]
CREATE TABLE [dbo].[StorageRequirement]
(
[StorageRequirementID] [int] NOT NULL IDENTITY(1, 1),
[StorageRequirementDescription] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[VanLineCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UploadCode] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageRequirement] ADD CONSTRAINT [PK_StorageRequirement] PRIMARY KEY CLUSTERED ([StorageRequirementID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageRequirement] ADD CONSTRAINT [IX_Unique_StorageRequirementDescription_VanLineCode] UNIQUE NONCLUSTERED ([StorageRequirementDescription], [VanLineCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StorageRequirementDescription] ON [dbo].[StorageRequirement] ([StorageRequirementDescription]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[StorageRequirement] TO [MssExec]
GRANT INSERT ON [dbo].[StorageRequirement] TO [MssExec]
GRANT DELETE ON [dbo].[StorageRequirement] TO [MssExec]
GRANT UPDATE ON [dbo].[StorageRequirement] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'The description of the storage requirement.', 'SCHEMA', N'dbo', 'TABLE', N'StorageRequirement', 'COLUMN', N'StorageRequirementDescription'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'StorageRequirement', 'COLUMN', N'StorageRequirementID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The van line code for the storage requirement.', 'SCHEMA', N'dbo', 'TABLE', N'StorageRequirement', 'COLUMN', N'VanLineCode'
GO