idac: unused upgrade script

This commit is contained in:
UncleJim 2024-05-03 16:35:47 +08:00
parent 60fbbbddf6
commit 75a7dadc30
1 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
-- Create the new table idac_round_info
CREATE TABLE idac_round_info (
id INT PRIMARY KEY AUTO_INCREMENT,
round_id INT,
name VARCHAR(64),
season INT,
start_dt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
end_dt TIMESTAMP DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- Create the new table idac_user_round_info
CREATE TABLE idac_user_round_info (
id INT PRIMARY KEY AUTO_INCREMENT,
user INT,
round_id INT,
count INT,
win INT,
point INT,
play_dt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT idac_user_vs_course_info_fk FOREIGN KEY (user) REFERENCES aime_user(id) ON DELETE CASCADE ON UPDATE CASCADE,
UNIQUE KEY idac_user_vs_course_info_uk (user, round_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;