[dbo].[SakariContactOrderMap]
CREATE TABLE [dbo].[SakariContactOrderMap]
(
[SakariContactOrderMapID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[SakariContactFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContactOrderMap] ADD CONSTRAINT [PK_SakariContactOrderMap] PRIMARY KEY NONCLUSTERED ([SakariContactOrderMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContactOrderMap] ADD CONSTRAINT [IX_SakariContactOrderMap_OrderFID_SakariContactFID] UNIQUE CLUSTERED ([SakariContactFID], [OrderFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContactOrderMap] ADD CONSTRAINT [FK_SakariContactOrderMap_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
ALTER TABLE [dbo].[SakariContactOrderMap] ADD CONSTRAINT [FK_SakariContactOrderMap_SakariContact] FOREIGN KEY ([SakariContactFID]) REFERENCES [dbo].[SakariContact] ([SakariContactID])
GO
GRANT SELECT ON [dbo].[SakariContactOrderMap] TO [MssExec]
GRANT INSERT ON [dbo].[SakariContactOrderMap] TO [MssExec]
GRANT DELETE ON [dbo].[SakariContactOrderMap] TO [MssExec]
GRANT UPDATE ON [dbo].[SakariContactOrderMap] TO [MssExec]
GO