[dbo].[ShipmentStatusActionMap]
CREATE TABLE [dbo].[ShipmentStatusActionMap]
(
[ShipmentStatusActionMapID] [int] NOT NULL IDENTITY(1, 1),
[ShipmentStatusFID] [int] NOT NULL,
[ShipmentStatusActionFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatusActionMap] ADD CONSTRAINT [PK_ShipmentStatusActionMap] PRIMARY KEY NONCLUSTERED ([ShipmentStatusActionMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatusActionMap] ADD CONSTRAINT [IX_ShipmentStatusActionMap_ShipmentStatusFID_ShipmentStatusActionFID] UNIQUE NONCLUSTERED ([ShipmentStatusFID], [ShipmentStatusActionFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatusActionMap] ADD CONSTRAINT [FK_ShipmentStatusActionMap_ShipmentStatusActionFID] FOREIGN KEY ([ShipmentStatusActionFID]) REFERENCES [dbo].[ShipmentStatusAction] ([ShipmentStatusActionID])
GO
ALTER TABLE [dbo].[ShipmentStatusActionMap] ADD CONSTRAINT [FK_ShipmentStatusActionMap_ShipmentStatusFID] FOREIGN KEY ([ShipmentStatusFID]) REFERENCES [dbo].[ShipmentStatus] ([ShipmentStatusID])
GO
GRANT SELECT ON [dbo].[ShipmentStatusActionMap] TO [MssExec]
GRANT INSERT ON [dbo].[ShipmentStatusActionMap] TO [MssExec]
GRANT DELETE ON [dbo].[ShipmentStatusActionMap] TO [MssExec]
GRANT UPDATE ON [dbo].[ShipmentStatusActionMap] TO [MssExec]
GO