﻿CREATE TABLE [dbo].[mfr__documents] (
    [Id]               BIGINT         NOT NULL,
    [CustomValues]     NVARCHAR (MAX) NOT NULL,
    [Version]          INT            NOT NULL,
    [State]            NVARCHAR (255) NULL,
    [ExternalId]       NVARCHAR (255) NULL,
    [URI]              NVARCHAR (255) NULL,
    [IsGlobal]         BIT            NOT NULL,
    [StartDateTime]    DATETIME       NULL,
    [EndDateTime]      DATETIME       NULL,
    [FileName]         NVARCHAR (255) NULL,
    [DateModified]     DATETIME       NOT NULL,
    [UploadDate]       DATETIME       NOT NULL,
    [IsLink]           BIT            NOT NULL,
    [ContentType]      NVARCHAR (255) NULL,
    [HTMLCode]         NVARCHAR (255) NULL,
    [ServiceRequestId] BIGINT         NOT NULL,
    [Note]             NVARCHAR (255) NULL,
    CONSTRAINT [PK_mfr__document] PRIMARY KEY CLUSTERED ([Id] ASC)
);

