[dbo].[XmlInternationalContainerLoadTypeMap]
CREATE TABLE [dbo].[XmlInternationalContainerLoadTypeMap]
(
[XmlInternationalContainerLoadTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalContainerLoadTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalContainerLoadTypeMap] ADD CONSTRAINT [PK_XmlInternationalContainerLoadTypeMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalContainerLoadTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalContainerLoadTypeMap] ADD CONSTRAINT [IX_XmlInternationalContainerLoadTypeMap_InternationalContainerLoadType_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalContainerLoadTypeFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalContainerLoadTypeMap] ADD CONSTRAINT [IX_XmlInternationalContainerLoadTypeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalContainerLoadTypeMap] ADD CONSTRAINT [FK_XmlInternationalContainerLoadTypeMap_InternationalContainerLoadType] FOREIGN KEY ([InternationalContainerLoadTypeFID]) REFERENCES [dbo].[InternationalContainerLoadType] ([InternationalContainerLoadTypeID])
GO
ALTER TABLE [dbo].[XmlInternationalContainerLoadTypeMap] ADD CONSTRAINT [FK_XmlInternationalContainerLoadTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalContainerLoadTypeMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalContainerLoadTypeMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalContainerLoadTypeMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalContainerLoadTypeMap] TO [MssExec]
GO