CREATE TABLE [dbo].[ShipmentType]
(
[ShipmentTypeID] [int] NOT NULL IDENTITY(1, 1),
[ShipmentTypeDescription] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[VanLineCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentType] ADD CONSTRAINT [PK_ShipmentType] PRIMARY KEY CLUSTERED ([ShipmentTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentType] ADD CONSTRAINT [IX_Unique_ShipmentTypeDescription] UNIQUE NONCLUSTERED ([ShipmentTypeDescription]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentType] ADD CONSTRAINT [IX_Unique_VanLineCode] UNIQUE NONCLUSTERED ([VanLineCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ShipmentTypeDescription] ON [dbo].[ShipmentType] ([ShipmentTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[ShipmentType] TO [MssExec]
GRANT INSERT ON [dbo].[ShipmentType] TO [MssExec]
GRANT DELETE ON [dbo].[ShipmentType] TO [MssExec]
GRANT UPDATE ON [dbo].[ShipmentType] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'The description of the shipment type.', 'SCHEMA', N'dbo', 'TABLE', N'ShipmentType', 'COLUMN', N'ShipmentTypeDescription'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'ShipmentType', 'COLUMN', N'ShipmentTypeID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The van line code for the shipment type.', 'SCHEMA', N'dbo', 'TABLE', N'ShipmentType', 'COLUMN', N'VanLineCode'
GO