[dbo].[XmlInternationalConsolidatorMap]
CREATE TABLE [dbo].[XmlInternationalConsolidatorMap]
(
[XmlInternationalConsolidatorMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalConsolidatorFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalConsolidatorMap] ADD CONSTRAINT [PK_XmlInternationalConsolidatorMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalConsolidatorMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalConsolidatorMap] ADD CONSTRAINT [IX_XmlInternationalConsolidatorMap_InternationalConsolidatorFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalConsolidatorFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalConsolidatorMap] ADD CONSTRAINT [IX_XmlInternationalConsolidatorMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalConsolidatorMap] ADD CONSTRAINT [FK_XmlInternationalConsolidatorMap_InternationalConsolidator] FOREIGN KEY ([InternationalConsolidatorFID]) REFERENCES [dbo].[InternationalConsolidator] ([InternationalConsolidatorID])
GO
ALTER TABLE [dbo].[XmlInternationalConsolidatorMap] ADD CONSTRAINT [FK_XmlInternationalConsolidatorMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalConsolidatorMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalConsolidatorMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalConsolidatorMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalConsolidatorMap] TO [MssExec]
GO