Commit aa444d1f authored by David Gustavo De La Rocha Ramirez's avatar David Gustavo De La Rocha Ramirez
Browse files

SQL V1

parent 49bd35b3
CREATE TABLE Ville (
nom_ville VARCHAR PRIMARY KEY
);
CREATE TABLE Gare (
nom_gare VARCHAR,
nom_ville REFERENCES Ville(nom_ville),
adresse VARCHAR NOT NULL,
zone_horaire INTEGER NOT NULL
PRIMARY KEY (nom_gare, nom_ville)
);
CREATE TABLE Ligne (
id INTEGER PRIMARY KEY,
nom_ligne VARCHAR,
origine VARCHAR REFERENCES Gare(nom_gare),
terminus VARCHAR REFERENCES Gare(nom_gare)
);
Supports Markdown
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