2022-07-05 13:54:10 +02:00
|
|
|
|
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,
|
2022-07-23 23:57:12 +02:00
|
|
|
|
[Total] MONEY NOT NULL,
|
|
|
|
|
CONSTRAINT [FK_Sale_ToUser] FOREIGN KEY (CashierId) REFERENCES [User](Id)
|
2022-07-05 13:54:10 +02:00
|
|
|
|
)
|