CREATE TABLE ElectionInformation( ElectionCycle varchar(30) not null unique, ElectionChannel bigint unsigned not null, CouncilVoteMsgId bigint unsigned, PRIMARY KEY (ElectionCycle) ); CREATE TABLE CouncilMembers( ElectionCycle varchar(30) not null, MemberId bigint unsigned not null, SpeechMsgId bigint unsigned not null, Elected boolean DEFAULT false, HighCouncilElect boolean DEFAULT false, DiscordManager boolean DEFAULT false, ClanLeader boolean DEFAULT false, FOREIGN KEY (ElectionCycle) REFERENCES ElectionInformation(ElectionCycle), PRIMARY KEY (ElectionCycle, MemberId) ); CREATE TABLE Votes( ElectionCycle varchar(30) not null, VoterId bigint unsigned not null, VotedForId bigint unsigned, FOREIGN KEY (ElectionCycle) REFERENCES ElectionInformation(ElectionCycle), PRIMARY KEY (ElectionCycle, VoterId) ); CREATE TABLE UserBirthday ( UserId bigint unsigned not null, Birthday varchar(5) not null, PRIMARY KEY (UserId) );