From 7ef8768634ee3366372266d1d5b8709ba24c705d Mon Sep 17 00:00:00 2001 From: imcompiling Date: Wed, 29 Mar 2023 20:48:40 -0400 Subject: [PATCH] Add sql definition for Submissions. --- highscores_database.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/highscores_database.sql b/highscores_database.sql index 4453b35..003ee2a 100644 --- a/highscores_database.sql +++ b/highscores_database.sql @@ -42,4 +42,14 @@ CREATE TABLE Scores( CategoryId int unsigned not null, FOREIGN KEY (CategoryId) REFERENCES Categories(CategoryId) ON DELETE CASCADE, PRIMARY KEY (CategoryId, UserName) +); + +CREATE TABLE Submissions( + CategoryId int unsigned not null, + GroupId int unsigned not null, + Score float not null, + SubmissionMessageId bigint unsigned not null, + UserName varchar(30) not null, + VerificationMessageId bigint unsigned not null, + PRIMARY KEY (CategoryId, GroupId, UserName) ); \ No newline at end of file