[dbo].[XmlInternationalLinehaulCarrierMap]
CREATE TABLE [dbo].[XmlInternationalLinehaulCarrierMap]
(
[XmlInternationalLinehaulCarrierMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalLinehaulCarrierFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalLinehaulCarrierMap] ADD CONSTRAINT [PK_XmlInternationalLinehaulCarrierMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalLinehaulCarrierMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalLinehaulCarrierMap] ADD CONSTRAINT [IX_XmlInternationalLinehaulCarrierMap_InternationalLinehaulCarrierFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalLinehaulCarrierFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalLinehaulCarrierMap] ADD CONSTRAINT [IX_XmlInternationalLinehaulCarrierMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalLinehaulCarrierMap] ADD CONSTRAINT [FK_XmlInternationalLinehaulCarrierMap_InternationalLinehaulCarrier] FOREIGN KEY ([InternationalLinehaulCarrierFID]) REFERENCES [dbo].[InternationalLinehaulCarrier] ([InternationalLinehaulCarrierID])
GO
ALTER TABLE [dbo].[XmlInternationalLinehaulCarrierMap] ADD CONSTRAINT [FK_XmlInternationalLinehaulCarrierMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalLinehaulCarrierMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalLinehaulCarrierMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalLinehaulCarrierMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalLinehaulCarrierMap] TO [MssExec]
GO