[dbo].[XmlInternationalContainerSizeTypeMap]
CREATE TABLE [dbo].[XmlInternationalContainerSizeTypeMap]
(
[XmlInternationalContainerSizeTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalContainerSizeTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalContainerSizeTypeMap] ADD CONSTRAINT [PK_XmlInternationalContainerSizeTypeMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalContainerSizeTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalContainerSizeTypeMap] ADD CONSTRAINT [IX_XmlInternationalContainerSizeTypeMap_InternationalContainerSizeTypeFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalContainerSizeTypeFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalContainerSizeTypeMap] ADD CONSTRAINT [IX_XmlInternationalContainerSizeTypeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalContainerSizeTypeMap] ADD CONSTRAINT [FK_XmlInternationalContainerSizeTypeMap_InternationalContainerSizeType] FOREIGN KEY ([InternationalContainerSizeTypeFID]) REFERENCES [dbo].[InternationalContainerSizeType] ([InternationalContainerSizeTypeID])
GO
ALTER TABLE [dbo].[XmlInternationalContainerSizeTypeMap] ADD CONSTRAINT [FK_XmlInternationalContainerSizeTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalContainerSizeTypeMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalContainerSizeTypeMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalContainerSizeTypeMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalContainerSizeTypeMap] TO [MssExec]
GO