2023-09-30 14:51:11 -07:00
|
|
|
-- Your SQL goes here
|
2023-11-04 02:43:12 -07:00
|
|
|
CREATE TABLE
|
|
|
|
drinks (
|
|
|
|
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
|
|
|
|
price INT UNSIGNED NOT NULL,
|
|
|
|
quantity INT UNSIGNED NOT NULL,
|
|
|
|
shift INT UNSIGNED NOT NULL,
|
|
|
|
time DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
|
|
FOREIGN KEY (shift) REFERENCES shifts (id) ON DELETE CASCADE
|
2023-11-04 02:56:05 -07:00
|
|
|
);
|