[dbo].[XmlInternationalValueTypeMap]
CREATE TABLE [dbo].[XmlInternationalValueTypeMap]
(
[XmlInternationalValueTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalValueTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalValueTypeMap] ADD CONSTRAINT [PK_XmlInternationalValueTypeMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalValueTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalValueTypeMap] ADD CONSTRAINT [IX_XmlInternationalValueTypeMap_InternationalValueTypeFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalValueTypeFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalValueTypeMap] ADD CONSTRAINT [IX_XmlInternationalValueTypeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalValueTypeMap] ADD CONSTRAINT [FK_XmlInternationalValueTypeMap_InternationalConsolidator] FOREIGN KEY ([InternationalValueTypeFID]) REFERENCES [dbo].[InternationalValueType] ([InternationalValueTypeID])
GO
ALTER TABLE [dbo].[XmlInternationalValueTypeMap] ADD CONSTRAINT [FK_XmlInternationalValueTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalValueTypeMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalValueTypeMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalValueTypeMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalValueTypeMap] TO [MssExec]
GO