11 lines
302 B
MySQL
11 lines
302 B
MySQL
|
-- Your SQL goes here
|
||
|
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
|
||
|
)
|