﻿CREATE TABLE [dbo].[fds__invoice_items] (
    [Id]              BIGINT          IDENTITY (1, 1) NOT NULL,
    [InvId]           VARCHAR (10)    NOT NULL,
    [InvRqId]         VARCHAR (10)    NOT NULL,
    [mfr__item]       BIGINT          NULL,
    [reference_InvId] VARCHAR (20)    NULL,
    [Type]            NVARCHAR (255)  NULL,
    [Position]        VARCHAR (5)     NULL,
    [Quantity]        NVARCHAR (25)   NULL,
    [Text]            NVARCHAR (MAX)  NULL,
    [value]           NUMERIC (10, 2) NULL,
    [value_total]     NUMERIC (10, 2) NULL,
    [vat]             NUMERIC (5, 2)  NULL,
    [value_service]   NUMERIC (10, 2) NULL,
    [det]             BIT             NULL,
    [SortOrder]       TINYINT         NOT NULL
);


GO
CREATE NONCLUSTERED INDEX [fds__invoice_items__ix1]
    ON [dbo].[fds__invoice_items]([InvId] ASC);

