|
|
|
@ -96,13 +96,13 @@ CREATE TABLE konto ( |
|
|
|
|
CONSTRAINT fk_konto_mitglied FOREIGN KEY (mitgliednr) REFERENCES mitglied (nr) |
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE wahl ( |
|
|
|
|
id smallint(5) unsigned NOT NULL, |
|
|
|
|
kuerzel varchar(8) NOT NULL, |
|
|
|
|
bezeichnung varchar(40) NOT NULL, |
|
|
|
|
wahltag date NOT NULL, |
|
|
|
|
PRIMARY KEY (id) |
|
|
|
|
PRIMARY KEY (id), |
|
|
|
|
KEY ix_wahltag (wahltag) |
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
|
|
|
|
|
|
|
|
|
CREATE TABLE wahlkreis ( |
|
|
|
@ -111,3 +111,9 @@ CREATE TABLE wahlkreis ( |
|
|
|
|
bezeichnung varchar(60) NOT NULL, |
|
|
|
|
PRIMARY KEY (wahl_id,nr) |
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
|
|
|
|
|
|
|
|
|
CREATE TABLE session ( |
|
|
|
|
sessionkey CHAR(32) NOT NULL, |
|
|
|
|
sessionstart TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), |
|
|
|
|
PRIMARY KEY (sessionkey) |
|
|
|
|
) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4; |
|
|
|
|