[dbo].[XmlInternationalTransportationModeMap]
CREATE TABLE [dbo].[XmlInternationalTransportationModeMap]
(
[XmlInternationalTransportationModeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalTransportationModeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalTransportationModeMap] ADD CONSTRAINT [PK_XmlInternationalTransportationModeMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalTransportationModeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalTransportationModeMap] ADD CONSTRAINT [IX_XmlInternationalTransportationModeMap_InternationalTransportationModeFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalTransportationModeFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalTransportationModeMap] ADD CONSTRAINT [IX_XmlInternationalTransportationModeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalTransportationModeMap] ADD CONSTRAINT [FK_XmlInternationalTransportationModeMap_InternationalTransportationMode] FOREIGN KEY ([InternationalTransportationModeFID]) REFERENCES [dbo].[InternationalTransportationMode] ([InternationalTransportationModeID])
GO
ALTER TABLE [dbo].[XmlInternationalTransportationModeMap] ADD CONSTRAINT [FK_XmlInternationalTransportationModeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalTransportationModeMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalTransportationModeMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalTransportationModeMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalTransportationModeMap] TO [MssExec]
GO