[dbo].[XmlInternationalBookingNumberTransitTypeMap]
CREATE TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap]
(
[XmlInternationalBookingNumberTransitTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalBookingNumberTransitTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [PK_XmlInternationalBookingNumberTransitTypeMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalBookingNumberTransitTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [IX_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitTypeFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalBookingNumberTransitTypeFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [IX_XmlInternationalBookingNumberTransitTypeMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [FK_XmlInternationalBookingNumberTransitTypeMap_InternationalBookingNumberTransitType] FOREIGN KEY ([InternationalBookingNumberTransitTypeFID]) REFERENCES [dbo].[InternationalBookingNumberTransitType] ([InternationalBookingNumberTransitTypeID])
GO
ALTER TABLE [dbo].[XmlInternationalBookingNumberTransitTypeMap] ADD CONSTRAINT [FK_XmlInternationalBookingNumberTransitTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalBookingNumberTransitTypeMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalBookingNumberTransitTypeMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalBookingNumberTransitTypeMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalBookingNumberTransitTypeMap] TO [MssExec]
GO