[dbo].[XmlInternationalBookingNumberLocationTypeMap]
CREATE TABLE [dbo].[XmlInternationalBookingNumberLocationTypeMap]
(
[XmlInternationalBookingNumberLocationTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalBookingNumberLocationTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberLocationTypeMap] ADD CONSTRAINT [PK_XmlInternationalBookingNumberLocationTypeMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalBookingNumberLocationTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberLocationTypeMap] ADD CONSTRAINT [IX_XmlInternationalBookingNumberLocationTypeMap_InternationalBookingNumberLocationTypeFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalBookingNumberLocationTypeFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberLocationTypeMap] ADD CONSTRAINT [IX_XmlInternationalBookingNumberLocationTypeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberLocationTypeMap] ADD CONSTRAINT [FK_XmlInternationalBookingNumberLocationTypeMap_InternationalBookingNumberLocationType] FOREIGN KEY ([InternationalBookingNumberLocationTypeFID]) REFERENCES [dbo].[InternationalBookingNumberLocationType] ([InternationalBookingNumberLocationTypeID])
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberLocationTypeMap] ADD CONSTRAINT [FK_XmlInternationalBookingNumberLocationTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalBookingNumberLocationTypeMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalBookingNumberLocationTypeMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalBookingNumberLocationTypeMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalBookingNumberLocationTypeMap] TO [MssExec]
GO