clubmanager/migrations/2023-11-04-093417_create_shows/up.sql

11 lines
322 B
MySQL
Raw Normal View History

2023-11-04 09:56:05 +00:00
-- 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,
2023-11-15 05:55:18 +00:00
estimated_end DATETIME NOT NULL,
2023-11-04 09:56:05 +00:00
end DATETIME DEFAULT NULL,
FOREIGN KEY (dancer) REFERENCES dancers (id) ON DELETE RESTRICT
)