![Tables](../../Images/Table.gif)
[dbo].[XmlOrderCancellationReasonMap]
CREATE TABLE [dbo].[XmlOrderCancellationReasonMap]
(
[XmlOrderCancellationReasonMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[OrderCancellationReasonFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [PK_XmlOrderCancellationReasonMap] PRIMARY KEY NONCLUSTERED ([XmlOrderCancellationReasonMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [IX_XmlOrderCancellationReasonMap_OrderCancellationReasonFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([OrderCancellationReasonFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [IX_XmlOrderCancellationReasonMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [FK_XmlOrderCancellationReasonMap_OrderCancellationReason] FOREIGN KEY ([OrderCancellationReasonFID]) REFERENCES [dbo].[OrderCancellationReason] ([OrderCancellationReasonID])
GO
ALTER TABLE [dbo].[XmlOrderCancellationReasonMap] ADD CONSTRAINT [FK_XmlOrderCancellationReasonMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlOrderCancellationReasonMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlOrderCancellationReasonMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlOrderCancellationReasonMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlOrderCancellationReasonMap] TO [MssExec]
GO