﻿CREATE TABLE [dbo].[mfr__d_items] (
    [Id]                   BIGINT          NULL,
    [Version]              INT             NULL,
    [QuantityHours]        NUMERIC (10, 3) NULL,
    [PlannedQuantityHours] NUMERIC (10, 3) NULL,
    [ItemTypeId]           BIGINT          NULL,
    [ItemNumber]           VARCHAR (255)   NULL,
    [TrackingId]           VARCHAR (255)   NULL,
    [Manufacture]          VARCHAR (255)   NULL,
    [Price]                NUMERIC (10, 3) NULL,
    [Costs]                NUMERIC (10, 3) NULL,
    [NameOrNumber]         NVARCHAR (255)  NULL,
    [CustomValues]         NVARCHAR (MAX)  NULL,
    [Note]                 NVARCHAR (MAX)  NULL,
    [ExternalId]           NVARCHAR (255)  NULL,
    [Discount]             NUMERIC (10, 3) NULL,
    [VAT]                  NUMERIC (10, 3) NULL,
    [IsManual]             BIT             NULL,
    [SortOrder]            INT             NULL,
    [Type]                 VARCHAR (255)   NULL,
    [ServiceRequestId]     BIGINT          NULL,
    [ServiceObjectId]      BIGINT          NULL,
    [CreatorId]            BIGINT          NULL,
    [UnitId]               BIGINT          NULL,
    [UnitString]           VARCHAR (50)    NULL,
    [DateDeleted]          DATETIME        NULL
);

