﻿CREATE TABLE [dbo].[QuoteSimPar] (
    [QuoteType] CHAR (1)      CONSTRAINT [DF_QuoteSimPar_QuoteType] DEFAULT ('Q') NOT NULL,
    [CodQuote]  BIGINT        NOT NULL,
    [QuoteRev]  INT           CONSTRAINT [DF_QuoteSimPar_QuoteRev] DEFAULT ((0)) NOT NULL,
    [NomePar]   NVARCHAR (50) CONSTRAINT [DF_QuoteSimPar_NomePar] DEFAULT ('') NOT NULL,
    [ValPar]    NVARCHAR (50) CONSTRAINT [DF_QuoteSimPar_ValParStr] DEFAULT ('') NOT NULL,
    CONSTRAINT [PK_QuoteSimPar_1] PRIMARY KEY CLUSTERED ([QuoteType] ASC, [CodQuote] ASC, [QuoteRev] ASC, [NomePar] ASC) WITH (FILLFACTOR = 90)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'numero nel formato yyMMddnnnn dove nnn è incrementale giornaliero', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteSimPar', @level2type = N'COLUMN', @level2name = N'CodQuote';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'tipo di preventivo: Q = quote, S = simulation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'QuoteSimPar', @level2type = N'COLUMN', @level2name = N'QuoteType';

