Commit acb84709 authored by Pierre Guerin's avatar Pierre Guerin
Browse files

Update rendu-5/create3NF.sql

parent 8dcee7c3
......@@ -28,10 +28,10 @@ modele VARCHAR NOT NULL,
marque VARCHAR NOT NULL,
proprietaire INTEGER NOT NULL,
FOREIGN KEY (proprietaire) REFERENCES utilisateur(id),
FOREIGN KEY (modele,marque) REFERENCES typevehicuel(modele,marque)
FOREIGN KEY (modele,marque) REFERENCES tVehicule(modele,marque)
);
CREATE TABLE typeVehicule(
CREATE TABLE tVehicule(
modele VARCHAR NOT NULL,
marque VARCHAR NOT NULL,
type typeVehicule NOT NULL,
......
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