Skip to content
Extraits de code Groupes Projets
Valider 4358ddc2 rédigé par qixiang peng's avatar qixiang peng
Parcourir les fichiers

update create.sql

parent c72a5af8
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -69,7 +69,7 @@ CREATE TABLE billet( ...@@ -69,7 +69,7 @@ CREATE TABLE billet(
n_representation INTEGER, n_representation INTEGER,
pourcentage DECIMAL, pourcentage DECIMAL,
CONSTRAINT pk_billet PRIMARY KEY (n_compte,n_place,n_representation), CONSTRAINT pk_billet PRIMARY KEY (n_compte,n_place,n_representation),
CONSTRAINT type_de_place CHECK (p_type IN (0.5, 0.6, 0.8)), CONSTRAINT type_de_pourcentage CHECK (pourcentage IN (0.5, 0.6, 0.8)),
CONSTRAINT fk_billet_place CONSTRAINT fk_billet_place
FOREIGN KEY (n_place) REFERENCES place ON DELETE CASCADE, FOREIGN KEY (n_place) REFERENCES place ON DELETE CASCADE,
CONSTRAINT fk_billet_compte CONSTRAINT fk_billet_compte
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter