[dbo].[XmlInternationalServiceTypeMap]
CREATE TABLE [dbo].[XmlInternationalServiceTypeMap]
(
[XmlInternationalServiceTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalServiceTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalServiceTypeMap] ADD CONSTRAINT [PK_XmlInternationalServiceTypeMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalServiceTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalServiceTypeMap] ADD CONSTRAINT [IX_XmlInternationalServiceTypeMap_InternationalServiceTypeFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalServiceTypeFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalServiceTypeMap] ADD CONSTRAINT [IX_XmlInternationalServiceTypeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalServiceTypeMap] ADD CONSTRAINT [FK_XmlInternationalServiceTypeMap_InternationalServiceType] FOREIGN KEY ([InternationalServiceTypeFID]) REFERENCES [dbo].[InternationalServiceType] ([InternationalServiceTypeID])
GO
ALTER TABLE [dbo].[XmlInternationalServiceTypeMap] ADD CONSTRAINT [FK_XmlInternationalServiceTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalServiceTypeMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalServiceTypeMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalServiceTypeMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalServiceTypeMap] TO [MssExec]
GO