[dbo].[XmlInternationalValuationDeclinedReasonMap]
CREATE TABLE [dbo].[XmlInternationalValuationDeclinedReasonMap]
(
[XmlInternationalValuationDeclinedReasonMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalValuationDeclinedReasonFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalValuationDeclinedReasonMap] ADD CONSTRAINT [PK_XmlInternationalValuationDeclinedReasonMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalValuationDeclinedReasonMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalValuationDeclinedReasonMap] ADD CONSTRAINT [IX_XmlInternationalValuationDeclinedReasonMap_InternationalValuationDeclinedReasonFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalValuationDeclinedReasonFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalValuationDeclinedReasonMap] ADD CONSTRAINT [IX_XmlInternationalValuationDeclinedReasonMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalValuationDeclinedReasonMap] ADD CONSTRAINT [FK_XmlInternationalValuationDeclinedReasonMap_InternationalConsolidator] FOREIGN KEY ([InternationalValuationDeclinedReasonFID]) REFERENCES [dbo].[InternationalValuationDeclinedReason] ([InternationalValuationDeclinedReasonID])
GO
ALTER TABLE [dbo].[XmlInternationalValuationDeclinedReasonMap] ADD CONSTRAINT [FK_XmlInternationalValuationDeclinedReasonMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalValuationDeclinedReasonMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalValuationDeclinedReasonMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalValuationDeclinedReasonMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalValuationDeclinedReasonMap] TO [MssExec]
GO