This commit is contained in:
2024-04-18 17:12:37 +02:00
parent f9b416057c
commit bca0746490
2 changed files with 17 additions and 13 deletions

View File

@@ -36,6 +36,7 @@ CREATE TABLE
rang INTEGER DEFAULT NULL
);
-- lancer de dé dans un tour
CREATE TABLE
comprend (
PRIMARY KEY (idpartie, num_tour, idlancer, numero_lancer_dans_tour),
@@ -52,18 +53,21 @@ CREATE TABLE
couleur VARCHAR(42)
);
-- un roulement de 1 dé dans un lancer de 6 dés
CREATE TABLE
de_lance (
PRIMARY KEY (idlancer, rang_couleur_valeur),
idlancer INTEGER NOT NULL AUTO_INCREMENT,
PRIMARY KEY (roulement_de_de, rang_couleur_valeur, idlancer),
roulement_de_de INTEGER NOT NULL AUTO_INCREMENT,
idlancer INTEGER NOT NULL,
rang_couleur_valeur VARCHAR(42) NOT NULL
);
-- un lancer de 6 dés
CREATE TABLE
effectue (
PRIMARY KEY (idjoueur, idlancer),
PRIMARY KEY (idlancer),
idjoueur INTEGER NOT NULL,
idlancer INTEGER NOT NULL
idlancer INTEGER NOT NULL AUTO_INCREMENT
);
CREATE TABLE