﻿CREATE TABLE [dbo].[mfr__timeevents] (
    [Id]                      BIGINT         NOT NULL,
    [Version]                 INT            NOT NULL,
    [State]                   NVARCHAR (255) NULL,
    [IsApproved]              BIT            NOT NULL,
    [TimeEventType]           NVARCHAR (255) NULL,
    [ExternalId]              NVARCHAR (255) NULL,
    [DateModified]            DATETIME       NOT NULL,
    [StartDateTime]           DATETIME       NOT NULL,
    [EndDateTime]             DATETIME       NOT NULL,
    [ProposedDrivingDistance] INT            NOT NULL,
    [ContactId]               BIGINT         NOT NULL,
    [ServiceRequestId]        BIGINT         NOT NULL,
    [Description]             NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_mfr__timeevent] PRIMARY KEY CLUSTERED ([Id] ASC)
);

