score-the-pigs/resources/migrations/20250312151928-create-players.up.sql

11 lines
277 B
MySQL
Raw Normal View History

2025-03-12 19:54:45 +00:00
CREATE TABLE IF NOT EXISTS player (
id INTEGER PRIMARY KEY,
2025-03-14 15:04:10 +00:00
game_score INTEGER NOT NULL,
round_score INTEGER NOT NULL,
2025-03-12 19:54:45 +00:00
name text NOT NULL,
game_code text NOT NULL,
play_order integer NOT NULL,
2025-03-14 18:55:18 +00:00
last_move integer,
FOREIGN KEY (game_code) REFERENCES game(code)
2025-03-12 19:54:45 +00:00
);