CREATE TABLE [dbo].[CrateItemCodeMap]
(
[CrateItemCodeMapID] [int] NOT NULL IDENTITY(1, 1),
[ItemCodeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CrateItemCodeMap] ADD CONSTRAINT [PK_CrateItemCodeMap] PRIMARY KEY CLUSTERED ([CrateItemCodeMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CrateItemCodeMap] ADD CONSTRAINT [FK_CrateItemCodeMap_ItemCode] FOREIGN KEY ([ItemCodeFID]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
GRANT SELECT ON [dbo].[CrateItemCodeMap] TO [MssExec]
GRANT INSERT ON [dbo].[CrateItemCodeMap] TO [MssExec]
GRANT DELETE ON [dbo].[CrateItemCodeMap] TO [MssExec]
GRANT UPDATE ON [dbo].[CrateItemCodeMap] TO [MssExec]
GO