Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions database/01_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ CREATE TABLE user_login (
PRIMARY KEY pk_id (id),
UNIQUE KEY uk_user_id (user_id),
FOREIGN KEY fk_user_id (user_id) REFERENCES user(id)
);
CREATE TABLE `game_state` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`name` INT NOT NULL,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (id),
UNIQUE KEY gs_name (name)
);