﻿CREATE TABLE [dbo].[AnagItems] (
    [idxItem]         INT             NOT NULL,
    [Descrizione]     NVARCHAR (250)  CONSTRAINT [DF_AnagItems_Descrizione] DEFAULT ('') NOT NULL,
    [NomeCostruttore] NVARCHAR (250)  CONSTRAINT [DF_AnagItems_NomeCostruttore] DEFAULT ('') NOT NULL,
    [CodCostruttore]  NVARCHAR (250)  CONSTRAINT [DF_AnagItems_CodCostruttore] DEFAULT ('') NOT NULL,
    [CodSomaschini]   NVARCHAR (50)   CONSTRAINT [DF_AnagItems_CodSomaschini] DEFAULT ('') NOT NULL,
    [QtaMin]          INT             CONSTRAINT [DF_AnagItems_QtaMin] DEFAULT ((0)) NOT NULL,
    [QtaLotto]        INT             CONSTRAINT [DF_AnagItems_QtaLotto] DEFAULT ((1)) NOT NULL,
    [Valore]          DECIMAL (18, 6) CONSTRAINT [DF_AnagItems_Valore] DEFAULT ((0)) NOT NULL,
    CONSTRAINT [PK_AnagItems] PRIMARY KEY CLUSTERED ([idxItem] ASC)
);






GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'valore unitario item', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AnagItems', @level2type = N'COLUMN', @level2name = N'Valore';

