﻿CREATE TABLE [dbo].[mfr__d_appointments] (
    [Id]                  BIGINT         NULL,
    [Version]             INT            NULL,
    [State]               NVARCHAR (255) NULL,
    [Type]                NVARCHAR (255) NULL,
    [EndDateTime]         DATETIME       NULL,
    [StartDateTime]       DATETIME       NULL,
    [DrivingDistanceFrom] INT            NULL,
    [DrivingDistanceTo]   INT            NULL,
    [WasReadOnClientSide] BIT            NULL,
    [ContactIds]          VARCHAR (MAX)  NULL,
    [ServiceRequestId]    BIGINT         NULL,
    [ContactId]           BIGINT         NULL,
    [Note]                NVARCHAR (MAX) NULL,
    [DateDeleted]         DATETIME       NULL
);

