11 lines
318 B
Transact-SQL
11 lines
318 B
Transact-SQL
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)
|
|
)
|