﻿CREATE TABLE [dbo].[mfr__stockmovements] (
    [Id]                BIGINT          NOT NULL,
    [Version]           INT             NOT NULL,
    [Amount]            NUMERIC (10, 3) NOT NULL,
    [AmountReceived]    NUMERIC (10, 3) NOT NULL,
    [ExternalId]        VARCHAR (255)   NULL,
    [ItemId]            BIGINT          NULL,
    [ItemTypeId]        BIGINT          NULL,
    [StockMovementType] VARCHAR (255)   NULL,
    [State]             VARCHAR (255)   NULL,
    [ServiceRequestId]  BIGINT          NOT NULL,
    [WarehouseId]       BIGINT          NOT NULL,
    [DateOfCreation]    DATETIME        NOT NULL,
    [DateModified]      DATETIME        NOT NULL,
    [TargetDate]        DATETIME        NOT NULL,
    [CreatedById]       BIGINT          NOT NULL,
    [ConfirmedById]     BIGINT          NOT NULL,
    CONSTRAINT [PK_mfr__stockmovement] PRIMARY KEY CLUSTERED ([Id] ASC)
);

