first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE IF NOT EXISTS `order_items` (
|
||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`orderId` INT UNSIGNED NOT NULL,
|
||||
`productId` INT UNSIGNED NOT NULL,
|
||||
`quantity` INT NOT NULL,
|
||||
`price` DECIMAL(10, 2) NOT NULL,
|
||||
|
||||
PRIMARY KEY (`id`),
|
||||
FOREIGN KEY (`orderId`) REFERENCES orders(`id`),
|
||||
FOREIGN KEY (`productId`) REFERENCES products(`id`)
|
||||
);
|
||||
Reference in New Issue
Block a user