Retail_manager/RMData/dbo/Tables/Product.sql

12 lines
403 B
MySQL
Raw Permalink Normal View History

CREATE TABLE [dbo].[Product]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY,
[ProductName] NVARCHAR(100) NOT NULL,
[Description] NVARCHAR(MAX) NOT NULL,
[RetailPrice] MONEY NOT NULL,
[QuantityInStock] INT NOT NULL DEFAULT 1,
[CreatedDate] DATETIME2 NOT NULL DEFAULT getutcdate(),
[LastModified] DATETIME2 NOT NULL DEFAULT getutcdate(),
[IsTaxable] BIT NOT NULL DEFAULT 1
)