[dbo].[XmlInternationalCarrierMap]
CREATE TABLE [dbo].[XmlInternationalCarrierMap]
(
[XmlInternationalCarrierMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalCarrierFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCarrierMap] ADD CONSTRAINT [PK_XmlInternationalCarrierMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalCarrierMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCarrierMap] ADD CONSTRAINT [IX_XmlInternationalCarrierMap_InternationalCarrierFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalCarrierFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCarrierMap] ADD CONSTRAINT [IX_XmlInternationalCarrierMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalCarrierMap] ADD CONSTRAINT [FK_XmlInternationalCarrierMap_InternationalCarrier] FOREIGN KEY ([InternationalCarrierFID]) REFERENCES [dbo].[InternationalCarrier] ([InternationalCarrierID])
GO
ALTER TABLE [dbo].[XmlInternationalCarrierMap] ADD CONSTRAINT [FK_XmlInternationalCarrierMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalCarrierMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalCarrierMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalCarrierMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalCarrierMap] TO [MssExec]
GO