Add the messages table to database.

This commit is contained in:
2024-05-14 18:06:16 -04:00
parent f51f66697f
commit 9ab4d9e339
2 changed files with 10 additions and 4 deletions
+5
View File
@@ -46,4 +46,9 @@ CREATE TABLE ParticipationPoints (
DiscordMember boolean not null, DiscordMember boolean not null,
Points int unsigned DEFAULT 0, Points int unsigned DEFAULT 0,
PRIMARY KEY (Cycle, UserId) PRIMARY KEY (Cycle, UserId)
);
CREATE TABLE Messages (
FileName varchar(100) PRIMARY KEY,
MessageId bigint unsigned not null
); );
+5 -4
View File
@@ -12,9 +12,10 @@ Base = automap_base()
Base.prepare(autoload_with=engine) Base.prepare(autoload_with=engine)
# define the classes # define the classes
ElectionInformation = Base.classes.ElectionInformation
CouncilMembers = Base.classes.CouncilMembers CouncilMembers = Base.classes.CouncilMembers
Votes = Base.classes.Votes ElectionInformation = Base.classes.ElectionInformation
UserBirthday = Base.classes.UserBirthday Messages = Base.classes.Messages
Presences = Base.classes.Presences
ParticipationPoints = Base.classes.ParticipationPoints ParticipationPoints = Base.classes.ParticipationPoints
Presences = Base.classes.Presences
UserBirthday = Base.classes.UserBirthday
Votes = Base.classes.Votes