[dbo].[XmlInternationalRegionMap]
CREATE TABLE [dbo].[XmlInternationalRegionMap]
(
[XmlInternationalRegionMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalRegionFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalRegionMap] ADD CONSTRAINT [PK_XmlInternationalRegionMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalRegionMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalRegionMap] ADD CONSTRAINT [IX_XmlInternationalRegionMap_InternationalRegionFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalRegionFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalRegionMap] ADD CONSTRAINT [IX_XmlInternationalRegionMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalRegionMap] ADD CONSTRAINT [FK_XmlInternationalRegionMap_InternationalRegion] FOREIGN KEY ([InternationalRegionFID]) REFERENCES [dbo].[InternationalRegion] ([InternationalRegionID])
GO
ALTER TABLE [dbo].[XmlInternationalRegionMap] ADD CONSTRAINT [FK_XmlInternationalRegionMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalRegionMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalRegionMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalRegionMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalRegionMap] TO [MssExec]
GO