Commit 26c15d24 authored by Clement Lucas's avatar Clement Lucas
Browse files

Update TABLE.sql

parent 4062d637
......@@ -99,7 +99,10 @@ CREATE TABLE Billet (
paiement typePaiement NOT NULL,
assurance BOOLEAN NOT NULL,
id_voyageur INTEGER REFERENCES Voyageur(id_voyageur) NOT NULL,
PRIMARY KEY(id_billet)
gare_depart INTEGER REFERENCES Gare(id_gare) NOT NULL,
gare_arrivee INTEGER REFERENCES Gare(id_gare) NOT NULL,
PRIMARY KEY(id_billet),
CHECK gare_depart <> gare_arrivee
);
---Trajet (#id_trajet : int, #id_billet=>Billet, numéro_place :integer, durée: heure,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment