CREATE TABLE [dbo].[ATWorkItemReferenceArc] (
    [WorkItemReferenceId] INT            NOT NULL,
    [WorkItemId]          INT            NOT NULL,
    [Queue]               NVARCHAR (32)  NULL,
    [SourceUser]          NVARCHAR (255) NULL,
    [SourceQueue]         NVARCHAR (32)  NULL,
    [ArrivalDate]         DATETIME       NULL,
    [EventID]             INT            NULL,
    [ExpirationTime]      DATETIME       NULL,
    [Expired]             INT            NOT NULL,
    [Successor]           INT            NULL,
    [ServerRequest]       INT            NULL,
    [ServerRequestParam]  INT            NULL,
    [Status]              INT            NOT NULL,
    [AssignedTo]          NVARCHAR (255) NULL,
    [LastAction]          NVARCHAR (255) NULL,
    [PendEventId]         INT            NULL,
    [PendQueue]           NVARCHAR (32)  NULL,
    [Draft]               INT            NULL,
    [Priority]            INT            NULL,
    [PendExpirationTime]  DATETIME       NULL,
    [DocumentBlob]        TEXT           NULL,
    [ArchiveSource]       NVARCHAR (255) NULL,
    [LastActionDate]      DATETIME       NULL,
    [LastViewDate]        DATETIME       NULL,
    CONSTRAINT [PK_WorkItemReferenceArc] PRIMARY KEY NONCLUSTERED ([WorkItemReferenceId] ASC)
);

