[dbo].[XmlInternationalDirectionMap]
CREATE TABLE [dbo].[XmlInternationalDirectionMap]
(
[XmlInternationalDirectionMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalDirectionFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalDirectionMap] ADD CONSTRAINT [PK_XmlInternationalDirectionMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalDirectionMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalDirectionMap] ADD CONSTRAINT [IX_XmlInternationalDirectionMap_InternationalDirectionFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalDirectionFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalDirectionMap] ADD CONSTRAINT [IX_XmlInternationalDirectionMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalDirectionMap] ADD CONSTRAINT [FK_XmlInternationalDirectionMap_InternationalRegion] FOREIGN KEY ([InternationalDirectionFID]) REFERENCES [dbo].[InternationalDirection] ([InternationalDirectionID])
GO
ALTER TABLE [dbo].[XmlInternationalDirectionMap] ADD CONSTRAINT [FK_XmlInternationalDirectionMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalDirectionMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalDirectionMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalDirectionMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalDirectionMap] TO [MssExec]
GO