Merge branch 'master' of https://codefirst.iut.uca.fr/git/nathan.boileau/Scripted
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Pierre BALLANDRAS 2 years ago
commit 02106feb8c

@ -18,7 +18,7 @@ estAdmin boolean
); );
CREATE TABLE Enigme( CREATE TABLE Enigme(
id int PRIMARY KEY AUTO_INCREMENT, id integer PRIMARY KEY AUTOINCREMENT,
enonce varchar(250) NOT NULL, enonce varchar(250) NOT NULL,
aide varchar(250), aide varchar(250),
rappel varchar(250), rappel varchar(250),
@ -29,7 +29,7 @@ points numeric CHECK (points >0)
); );
CREATE TABLE Partie( CREATE TABLE Partie(
id int PRIMARY KEY AUTO_INCREMENT, id integer PRIMARY KEY AUTOINCREMENT,
dateDebut date NOT NULL dateDebut date NOT NULL
); );
@ -54,6 +54,6 @@ PRIMARY KEY(partie, enigme)
CREATE TABLE Participer( CREATE TABLE Participer(
partie int REFERENCES Partie(id), partie int REFERENCES Partie(id),
joueur varchar(50) REFERENCES Joueur(email), joueur varchar(50) REFERENCES Joueur(email),
enCours boolean, etat int CHECK (etat IN (0,1,2)),
PRIMARY KEY(partie, joueur) PRIMARY KEY(partie, joueur)
); );

Binary file not shown.
Loading…
Cancel
Save