CREATE TABLE [dbo].[SalesTaxItemMap]
(
[SalesTaxItemMapID] [int] NOT NULL IDENTITY(1, 1),
[SalesTaxCodeFID] [int] NOT NULL,
[ItemCodeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SalesTaxItemMap] ADD CONSTRAINT [PK_SalesTaxItemMap] PRIMARY KEY NONCLUSTERED ([SalesTaxItemMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SalesTaxItemMap] ADD CONSTRAINT [IX_SalesTaxItemMap_ItemCodeFID] UNIQUE NONCLUSTERED ([ItemCodeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SalesTaxItemMap] ADD CONSTRAINT [FK_SalesTaxItemMap_ItemCode] FOREIGN KEY ([ItemCodeFID]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
ALTER TABLE [dbo].[SalesTaxItemMap] ADD CONSTRAINT [FK_SalesTaxItemMap_SalesTaxCode] FOREIGN KEY ([SalesTaxCodeFID]) REFERENCES [dbo].[SalesTaxCode] ([SalesTaxCodeID])
GO
GRANT SELECT ON [dbo].[SalesTaxItemMap] TO [MssExec]
GRANT INSERT ON [dbo].[SalesTaxItemMap] TO [MssExec]
GRANT DELETE ON [dbo].[SalesTaxItemMap] TO [MssExec]
GRANT UPDATE ON [dbo].[SalesTaxItemMap] TO [MssExec]
GO