- SET ANSI_NULLS ON
- GO
-
- SET QUOTED_IDENTIFIER ON
- GO
-
- CREATE TABLE [Production].[Product_2020](
- [ProductID] [int] IDENTITY(1,1) NOT NULL,
- [Name] [dbo].[Name] NOT NULL,
- [ProductNumber] [nvarchar](25) NOT NULL,
- [MakeFlag] [dbo].[Flag] NOT NULL CONSTRAINT [DF_Product_MakeFlag] DEFAULT ((1)),
- [FinishedGoodsFlag] [dbo].[Flag] NOT NULL CONSTRAINT [DF_Product_FinishedGoodsFlag] DEFAULT ((1)),
- [Color] [nvarchar](15) NULL,
- [SafetyStockLevel] [smallint] NOT NULL,
- [ReorderPoint] [smallint] NOT NULL,
- [StandardCost] [money] NOT NULL,
- [ListPrice] [money] NOT NULL,
- [Size] [nvarchar](5) NULL,
- [SizeUnitMeasureCode] [nchar](3) NULL,
- [WeightUnitMeasureCode] [nchar](3) NULL,
- [Weight] [decimal](8, 2) NULL,
- [DaysToManufacture] [int] NOT NULL,
- [ProductLine] [nchar](2) NULL,
- [Class] [nchar](2) NULL,
- [Style] [nchar](2) NULL,
- [ProductSubcategoryID] [int] NULL,
- [ProductModelID] [int] NULL,
- [SellStartDate] [datetime] NOT NULL,
- [SellEndDate] [datetime] NULL,
- [DiscontinuedDate] [datetime] NULL,
- [rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [DF_Product_rowguid] DEFAULT (newid()),
- [ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_Product_ModifiedDate] DEFAULT (getdate()),
- CONSTRAINT [PK_Product_ProductID] PRIMARY KEY CLUSTERED
- (
- [ProductID] ASC
- )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
- ) ON [PRIMARY]
-
- GO