Add the birthday table.

This commit is contained in:
2023-07-29 15:16:23 -04:00
parent c9946c9afe
commit f9d6227db1
+6 -3
View File
@@ -1,6 +1,3 @@
-- CREATE DATABASE dakiny;
-- use dakiny;
CREATE TABLE ElectionInformation(
ElectionCycle varchar(30) not null unique,
ElectionChannel bigint unsigned not null,
@@ -24,4 +21,10 @@ CREATE TABLE Votes(
VotedForId bigint unsigned not null,
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)
);