From 0a4c03cb4719c20c0e980c27fb59759983f95d6a Mon Sep 17 00:00:00 2001 From: Yasmine Grane-Belghmaidi Date: Wed, 7 Dec 2022 08:55:13 +0100 Subject: [PATCH 1/5] =?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 | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/personnel.sql b/personnel.sql index 00b193c..972aafc 100644 --- a/personnel.sql +++ b/personnel.sql @@ -14,7 +14,7 @@ CREATE TABLE Doctorant( idDoctorant INT NOT NULL, date_debut_these DATE, date_soutenance DATE - FOREIGN KEY (idDoctorant) REFERENCES Personnel(idPersonnel), + FOREIGN KEY (id) REFERENCES Personnel(idPersonnel), PRIMARY KEY(idPersonnel) ); @@ -169,3 +169,30 @@ CREATE TABLE Organise ( FOREIGN KEY (idPersonnel) REFERENCES Personnel(idPersonnel), PRIMARY KEY(idPortesOuverte, idPersonnel) ); +--Yasmine +CREATE TABLE Projet ( + titre char, + acronyme char, + annee_debut date, + annee_fin char, + duree INT NOT NULL, + budget_Laas INT NOT NULL, + cout INT NOT NULL, + FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique), + PRIMARY KEY(idProjet), +); +--Yasmine +CREATE TABLE Encadrement ( + FOREIGN KEY (idDoctorant) REFERENCES Doctorant(idDoctorant), + FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique), + PRIMARY KEY(idScientifique,idDoctorant), +); + +--Yasmine +CREATE TABLE Etablissement ( + nom char, + acronyme char, + adresse char, + PRIMARY KEY(idEtablissement), +); + From 6431c2decf56914b1813d7fda04bdf67fedcc170 Mon Sep 17 00:00:00 2001 From: Olougouna Axel Date: Wed, 7 Dec 2022 08:56:15 +0100 Subject: [PATCH 2/5] Etablissement --- personnel.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/personnel.sql b/personnel.sql index 00b193c..39e153f 100644 --- a/personnel.sql +++ b/personnel.sql @@ -52,6 +52,15 @@ CREATE TYPE grade AS ENUM ( 'mcf hors classe' ); +--Axel +CREATE TABLE Etablissement( + idEtablissement INT CONSTRAINT UnEtablissement PRIMARY Key, + nom VARCHAR, + acronyme VARCHAR, + adresse VARCHAR, +); + +CREATE TABLE Enseignant_Chercheur -- Nathan CREATE TABLE Evenement( idEvenement INT NOT NULL, From d86e251dcf06b078314c453952da08bedd93fda6 Mon Sep 17 00:00:00 2001 From: Yasmine Grane-Belghmaidi Date: Wed, 7 Dec 2022 08:59:01 +0100 Subject: [PATCH 3/5] =?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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/personnel.sql b/personnel.sql index 8a7532e..7a8580f 100644 --- a/personnel.sql +++ b/personnel.sql @@ -205,3 +205,10 @@ CREATE TABLE Etablissement ( PRIMARY KEY(idEtablissement), ); +CREATE TABLE Partenaire( + PRIMARY KEY(idPartenaire), + nom char, + pays char, +); + + From 3cfc55f7ae688648ca6c8043dfc6af31d82010e7 Mon Sep 17 00:00:00 2001 From: Yasmine Grane-Belghmaidi Date: Wed, 7 Dec 2022 08:59:20 +0100 Subject: [PATCH 4/5] =?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 | 1 + 1 file changed, 1 insertion(+) diff --git a/personnel.sql b/personnel.sql index 7a8580f..ea0c56e 100644 --- a/personnel.sql +++ b/personnel.sql @@ -204,6 +204,7 @@ CREATE TABLE Etablissement ( adresse char, PRIMARY KEY(idEtablissement), ); +--Yasmine CREATE TABLE Partenaire( PRIMARY KEY(idPartenaire), From bf20107d8311bdd2e5d4f7c6711bc1553813f4ac Mon Sep 17 00:00:00 2001 From: Yasmine Grane-Belghmaidi Date: Wed, 7 Dec 2022 09:02:20 +0100 Subject: [PATCH 5/5] =?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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/personnel.sql b/personnel.sql index ea0c56e..6200a68 100644 --- a/personnel.sql +++ b/personnel.sql @@ -212,4 +212,12 @@ CREATE TABLE Partenaire( pays char, ); +--Yasmine + +CREATE TABLE Evenement( + PRIMARY KEY(idEvenement), + date_debut DATE, + date_fin DATE, +); +