[dbo].[XmlImportReprocessHistory]
CREATE TABLE [dbo].[XmlImportReprocessHistory]
(
[XmlImportReprocessHistoryID] [int] NOT NULL IDENTITY(1, 1),
[XmlImportHistoryFID] [int] NULL,
[DateReprocessed] [datetime] NOT NULL,
[ReprocessedByFID] [int] NULL,
[ErrorCode] [int] NULL,
[StatusCode] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlImportReprocessHistory] ADD CONSTRAINT [PK_XmlImportReprocessHistory] PRIMARY KEY CLUSTERED ([XmlImportReprocessHistoryID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_XmlImportReprocessHistory_XmlImportHistory] ON [dbo].[XmlImportReprocessHistory] ([XmlImportHistoryFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlImportReprocessHistory] ADD CONSTRAINT [FK_XmlImportReprocessHistory_SysUser] FOREIGN KEY ([ReprocessedByFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[XmlImportReprocessHistory] ADD CONSTRAINT [FK_XmlImportReprocessHistory_XmlImportHistory] FOREIGN KEY ([XmlImportHistoryFID]) REFERENCES [dbo].[XmlImportHistory] ([XmlImportHistoryID])
GO
GRANT SELECT ON [dbo].[XmlImportReprocessHistory] TO [MssExec]
GRANT INSERT ON [dbo].[XmlImportReprocessHistory] TO [MssExec]
GRANT DELETE ON [dbo].[XmlImportReprocessHistory] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlImportReprocessHistory] TO [MssExec]
GO