CREATE TABLE [dbo].[IGCVanLineCodes]
(
[MSID] [int] NOT NULL IDENTITY(1, 1),
[IGCVanLineCode] [int] NOT NULL,
[VLPriKey] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[IGCVanLineCodes] ADD CONSTRAINT [PK_IGCVanLineCodes] PRIMARY KEY NONCLUSTERED ([MSID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[IGCVanLineCodes] ADD CONSTRAINT [IX_IGCVanLineCodes_IGCVanLineCode] UNIQUE NONCLUSTERED ([IGCVanLineCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[IGCVanLineCodes] ADD CONSTRAINT [IX_IGCVanLineCodes_VLPriKey] UNIQUE NONCLUSTERED ([VLPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[IGCVanLineCodes] ADD CONSTRAINT [FK_IGCVanLineCodes_VLPriKey] FOREIGN KEY ([VLPriKey]) REFERENCES [dbo].[VanLine] ([VLPriKey])
GO
GRANT SELECT ON [dbo].[IGCVanLineCodes] TO [MssExec]
GRANT INSERT ON [dbo].[IGCVanLineCodes] TO [MssExec]
GRANT DELETE ON [dbo].[IGCVanLineCodes] TO [MssExec]
GRANT UPDATE ON [dbo].[IGCVanLineCodes] TO [MssExec]
GO