﻿CREATE TABLE [dbo].[ItemDet] (
    [CodItem]      NVARCHAR (50)  NOT NULL,
    [ItemDescr]    NVARCHAR (250) NOT NULL,
    [CodPlant]     NVARCHAR (50)  NOT NULL,
    [UnitWeight]   DECIMAL (9, 3) NOT NULL,
    [CodItemGroup] NVARCHAR (50)  NOT NULL,
    [Class01]      NVARCHAR (50)  CONSTRAINT [DF_ItemDet_Class01] DEFAULT ('') NOT NULL,
    [Class02]      NVARCHAR (50)  CONSTRAINT [DF_ItemDet_Class02] DEFAULT ('') NOT NULL,
    [Class03]      NVARCHAR (50)  CONSTRAINT [DF_ItemDet_Class03] DEFAULT ('') NOT NULL,
    [Class04]      NVARCHAR (50)  CONSTRAINT [DF_ItemDet_Class04] DEFAULT ('') NOT NULL,
    [Class05]      NVARCHAR (50)  CONSTRAINT [DF_ItemDet_Class05] DEFAULT ('') NOT NULL,
    CONSTRAINT [PK_AnagArticoli] PRIMARY KEY CLUSTERED ([CodItem] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Item Details Table', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ItemDet';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'codice articolo', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ItemDet', @level2type = N'COLUMN', @level2name = N'CodItem';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'peso espresso come g/m (grammi / metro)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ItemDet', @level2type = N'COLUMN', @level2name = N'UnitWeight';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'classe raggruppamento (es complessità disegno)', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ItemDet', @level2type = N'COLUMN', @level2name = N'CodItemGroup';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'ItemDet', @level2type = N'COLUMN', @level2name = N'Class01';

