10 lines
285 B
MySQL
10 lines
285 B
MySQL
|
-- Your SQL goes here
|
||
|
CREATE TABLE
|
||
|
shows (
|
||
|
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
|
||
|
dancer INT UNSIGNED NOT NULL,
|
||
|
start DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||
|
end DATETIME DEFAULT NULL,
|
||
|
FOREIGN KEY (dancer) REFERENCES dancers (id) ON DELETE RESTRICT
|
||
|
)
|