Retail_manager/RMData/dbo/Tables/Product.sql
s459315 0957963cad Added Taxable to Products
Added the ability to tax products for sale
2022-07-23 23:56:50 +02:00

12 lines
403 B
Transact-SQL

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
)