Retail_manager/RMData/dbo/Tables/Sale.sql

11 lines
318 B
MySQL
Raw Normal View History

CREATE TABLE [dbo].[Sale]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY,
[CashierId] NVARCHAR(128) NOT NULL,
[SaleDate] DATETIME2 NOT NULL,
[SubTotal] MONEY NOT NULL,
[Tax] MONEY NOT NULL,
[Total] MONEY NOT NULL,
CONSTRAINT [FK_Sale_ToUser] FOREIGN KEY (CashierId) REFERENCES [User](Id)
)