9 lines
248 B
MySQL
9 lines
248 B
MySQL
|
CREATE TABLE [dbo].[Inventory]
|
|||
|
(
|
|||
|
[Id] INT NOT NULL PRIMARY KEY IDENTITY,
|
|||
|
[ProductId] INT NOT NULL,
|
|||
|
[Quantity] INT NOT NULL DEFAULT 1,
|
|||
|
[PurchasePrice] MONEY NOT NULL,
|
|||
|
[PurchaseDate] DATETIME2 NOT NULL DEFAULT getutcdate(),
|
|||
|
)
|