[dbo].[SCShippingDetails]
CREATE TABLE [dbo].[SCShippingDetails]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[OrdPriKey] [int] NOT NULL,
[Description] [varchar] (80) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Length] [int] NULL,
[Width] [int] NULL,
[Height] [int] NULL,
[Weight] [int] NULL,
[ModelNumber] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SerialNumber] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsAutoFilledDescription] [bit] NOT NULL CONSTRAINT [DF_SCShippingDetails_IsAutoFilledDescription] DEFAULT ((0)),
[SequenceNumber] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCShippingDetails] ADD CONSTRAINT [PK_SCShippingDetails] PRIMARY KEY CLUSTERED ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SCShippingDetails_OrdPriKey] ON [dbo].[SCShippingDetails] ([OrdPriKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCShippingDetails] ADD CONSTRAINT [FK_SCShippingDetails_ORDERS] FOREIGN KEY ([OrdPriKey]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON [dbo].[SCShippingDetails] TO [MssExec]
GRANT INSERT ON [dbo].[SCShippingDetails] TO [MssExec]
GRANT DELETE ON [dbo].[SCShippingDetails] TO [MssExec]
GRANT UPDATE ON [dbo].[SCShippingDetails] TO [MssExec]
GO