CREATE TABLE [dbo].[SystemError] (
    [Id]               UNIQUEIDENTIFIER DEFAULT (newid()) NOT NULL,
    [ErrorAt]          DATETIME         NULL,
    [MeldeType]        NVARCHAR (50)    NULL,
    [ReferenceId]      NVARCHAR (50)    NULL,
    [ProcessStatus]    INT              NULL,
    [ImportFilename]   NVARCHAR (255)   NULL,
    [ErrorCode]        INT              NULL,
    [ErrorMessage]     NVARCHAR (255)   NULL,
    [ErrorDescription] NVARCHAR (255)   NULL,
    [MessageCoreId]    UNIQUEIDENTIFIER NULL,
    [Status]           TINYINT          NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC)
);

