From 8340c7b313d9048c6386728faf1f8d9e00e7bdb2 Mon Sep 17 00:00:00 2001 From: JunkJumper Date: Fri, 4 Dec 2020 02:37:13 +0100 Subject: [PATCH] gitignorre --- sql/createSchema.sql | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sql/createSchema.sql b/sql/createSchema.sql index f84bdd0..5d0bd76 100644 --- a/sql/createSchema.sql +++ b/sql/createSchema.sql @@ -108,7 +108,10 @@ CREATE TABLE bddsurf.ville idVille INT NOT NULL PRIMARY KEY, -- primary key column nomVille VARCHAR, cpVille VARCHAR, - meteoVille INT NOT NULL + meteoVille INT NOT NULL, + CONSTRAINT fk_meteoville + FOREIGN KEY (meteoVille) + REFERENCES bddsurf.meteoville(IdMeteoVille) -- specify more columns here ); GO @@ -124,7 +127,10 @@ CREATE TABLE bddsurf.historique idHistorique INT NOT NULL PRIMARY KEY, -- primary key column utilisateur INT NOT NULL, spot INT NOT NULL, - pointage INT NOT NULL + pointage INT NOT NULL, + CONSTRAINT fk_user + FOREIGN KEY (utilisateur) + REFERENCES bddsurf.utilisateur(idUtilisateur) -- specify more columns here ); GO