From abe2f61eda58936ccb31721a19a7b662949cf0f3 Mon Sep 17 00:00:00 2001 From: Olougouna Axel Date: Wed, 7 Dec 2022 09:02:19 +0100 Subject: [PATCH 1/2] correction --- personnel.sql | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/personnel.sql b/personnel.sql index 8a7532e..f86b319 100644 --- a/personnel.sql +++ b/personnel.sql @@ -13,8 +13,8 @@ CREATE TABLE Personnel CREATE TABLE Doctorant( idDoctorant INT NOT NULL, date_debut_these DATE, - date_soutenance DATE - FOREIGN KEY (id) REFERENCES Personnel(idPersonnel), + date_soutenance DATE, + FOREIGN KEY (idDoctorant) REFERENCES Personnel(idPersonnel), PRIMARY KEY(idPersonnel) ); @@ -60,7 +60,7 @@ CREATE TABLE Etablissement( adresse VARCHAR, ); -CREATE TABLE Enseignant_Chercheur + -- Nathan CREATE TABLE Evenement( idEvenement INT NOT NULL, @@ -104,8 +104,8 @@ CREATE TABLE Auteur_Externe ( PRIMARY KEY (idAuteur) ); --- Nathan -CREATE TABLE Publication ( +-- NathanCREATE TABLE Enseignant_Chercheuration INT NOT NULL,--Corrigé Axel :) +CREATE TABLE Publication( idPublication INT NOT NULL, titre VARCHAR, annee DATE, @@ -125,7 +125,7 @@ CREATE TABLE Participe( ); -- Ronan -CREATE TABLE Preside( +CREATE TABLE PreCREATE TABLE Enseignant_Chercheurside( idCongres INT NOT NULL, idScientifique INT NOT NULL, FOREIGN KEY (idCongres) REFERENCES Congres(idCongres), @@ -142,7 +142,7 @@ CREATE TABLE Publie_Scientifique( PRIMARY KEY (idPublication, idScientifique) ); --- Ronan +-- RonanCREATE TABLE Enseignant_Chercheur CREATE TABLE Publie_Doctorant( idPublication INT NOT NULL, idDoctorant INT NOT NULL, @@ -197,11 +197,5 @@ CREATE TABLE Encadrement ( PRIMARY KEY(idScientifique,idDoctorant), ); ---Yasmine -CREATE TABLE Etablissement ( - nom char, - acronyme char, - adresse char, - PRIMARY KEY(idEtablissement), -); + From ab908f11c016a990c7177c822086a97d553fd33b Mon Sep 17 00:00:00 2001 From: Yasmine Grane-Belghmaidi Date: Wed, 7 Dec 2022 09:28:24 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Mettre=20=C3=A0=20jour=20'personnel.sql'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- personnel.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/personnel.sql b/personnel.sql index b2fc1c9..a023f33 100644 --- a/personnel.sql +++ b/personnel.sql @@ -204,5 +204,14 @@ CREATE TABLE Encadrement ( PRIMARY KEY(idScientifique,idDoctorant), ); +--Yasmine + +CREATE TABLE Partenaire( + PRIMARY KEY(idPartenaire), + nom char, + pays char, +); + +