Commit 09b5f849 authored by Clement Lucas's avatar Clement Lucas
Browse files

Update TABLE.sql

parent 7dbefc9b
......@@ -105,12 +105,12 @@ CREATE TABLE Billet (
---Trajet (#id_trajet : int, #id_billet=>Billet, numéro_place :integer, durée: heure,
--- horaire_départ=>Horaires, horaire_arrivée=>Horaires);
CREATE TABLE Trajet (
id_trajet SERIAL,
id_billet INTEGER REFERENCES Billet(id_billet) NOT NULL,
id_trajet INTEGER NOT NULL,
numero_place INTEGER NOT NULL,
duree TIME NOT NULL,
horaire_depart INTEGER REFERENCES Horaires(id_horaires) NOT NULL,
horaire_arrivee INTEGER REFERENCES Horaires(id_horaires) NOT NULL,
PRIMARY KEY(id_trajet, id_billet)
PRIMARY KEY(id_billet, id_trajet)
);
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