ElectionName is not unique in the other tables.

This commit is contained in:
2023-11-03 11:53:47 -04:00
parent 9c588a18af
commit a5ef579767
+2 -2
View File
@@ -6,7 +6,7 @@ CREATE TABLE ElectionInformation(
);
CREATE TABLE CouncilMembers(
ElectionCycle varchar(30) not null unique,
ElectionCycle varchar(30) not null,
MemberId bigint unsigned not null,
SpeechMsgId bigint unsigned not null,
Elected boolean DEFAULT false,
@@ -18,7 +18,7 @@ CREATE TABLE CouncilMembers(
);
CREATE TABLE Votes(
ElectionCycle varchar(30) not null unique,
ElectionCycle varchar(30) not null,
VoterId bigint unsigned not null,
VotedForId bigint unsigned,
FOREIGN KEY (ElectionCycle) REFERENCES ElectionInformation(ElectionCycle),