Skip to content

Commit

Permalink
MySQL server: PR#74
Browse files Browse the repository at this point in the history
  • Loading branch information
Berygna committed Jun 23, 2024
1 parent d8c752a commit 7956490
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions algofi-mysql/init/create_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ CREATE TABLE gameresult (
host_code_content VARCHAR(5500),
guest_code_content VARCHAR(5500),
created_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
algorithm_problem_id INT NOT NULL,
algorithmproblem_id INT NOT NULL,
chatroom_id VARCHAR(36) NOT NULL,
FOREIGN KEY (algorithm_problem_id) REFERENCES algorithmproblem(algorithm_problem_id),
FOREIGN KEY (algorithmproblem_id) REFERENCES algorithmproblem(algorithmproblem_id),
FOREIGN KEY (chatroom_id) REFERENCES chatroom(chatroom_id)
);

Expand All @@ -99,6 +99,6 @@ CREATE TABLE testcase (
test_case_id INT(11) AUTO_INCREMENT PRIMARY KEY,
test_input VARCHAR(500),
test_output VARCHAR(500),
algorithm_problem_id INT NOT NULL,
FOREIGN KEY(algorithm_problem_id) REFERENCES algorithmproblem(algorithm_problem_id)
algorithmproblem_id INT NOT NULL,
FOREIGN KEY(algorithmproblem_id) REFERENCES algorithmproblem(algorithmproblem_id)
);

0 comments on commit 7956490

Please sign in to comment.