﻿CREATE TABLE [ext].[ItemsRaw] (
    [CodItem]      NVARCHAR (50)  NOT NULL,
    [ItemDescr]    NVARCHAR (250) NOT NULL,
    [UnitWeight]   DECIMAL (9, 3) NOT NULL,
    [CodPlant]     NVARCHAR (50)  CONSTRAINT [DF_ItemsRaw_CodPlant] DEFAULT ('') NOT NULL,
    [CodItemGroup] NVARCHAR (50)  NOT NULL,
    [Class01]      NVARCHAR (50)  CONSTRAINT [DF_ItemsRaw_Class01_1] DEFAULT ('') NOT NULL,
    [Class02]      NVARCHAR (50)  CONSTRAINT [DF_ItemsRaw_Class02_1] DEFAULT ('') NOT NULL,
    [Class03]      NVARCHAR (50)  CONSTRAINT [DF_ItemsRaw_Class03_1] DEFAULT ('') NOT NULL,
    [Class04]      NVARCHAR (50)  CONSTRAINT [DF_ItemsRaw_Class04_1] DEFAULT ('') NOT NULL,
    [Class05]      NVARCHAR (50)  CONSTRAINT [DF_ItemsRaw_Class05_1] DEFAULT ('') NOT NULL,
    CONSTRAINT [PK_ArticoliRaw] PRIMARY KEY CLUSTERED ([CodItem] ASC)
);


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


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


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

