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,
Points int unsigned DEFAULT 0,
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)
# define the classes
ElectionInformation = Base.classes.ElectionInformation
CouncilMembers = Base.classes.CouncilMembers
Votes = Base.classes.Votes
UserBirthday = Base.classes.UserBirthday
Presences = Base.classes.Presences
ElectionInformation = Base.classes.ElectionInformation
Messages = Base.classes.Messages
ParticipationPoints = Base.classes.ParticipationPoints
Presences = Base.classes.Presences
UserBirthday = Base.classes.UserBirthday
Votes = Base.classes.Votes