From 33d8a823031117a28bcd5c8aa5bbc1dabee2d8ca Mon Sep 17 00:00:00 2001 From: nbillard Date: Wed, 7 Dec 2022 08:29:47 +0100 Subject: [PATCH 1/4] Journee porte ouverte --- personnel.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/personnel.sql b/personnel.sql index 28ec15f..4b0d014 100644 --- a/personnel.sql +++ b/personnel.sql @@ -17,6 +17,13 @@ CREATE TABLE Scientifique( PRIMARY KEY(idPersonnel) ); +-- Nathan +CREATE Journee_Porte_Ouvertes( + idPorteOuverte INT NOT NULL, + FOREIGN KEY (idPorteOuverte) REFERENCES Evenement(idEvenement), + PRIMARY KEY (idPorteOuverte) +); + -- Nathan CREATE Auteur_Externe ( idAuteur INT NOT NULL, From ccd113ed4affc379be96b990e193ca2d5c94be3e Mon Sep 17 00:00:00 2001 From: nbillard Date: Wed, 7 Dec 2022 08:32:23 +0100 Subject: [PATCH 2/4] Evenement --- personnel.sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/personnel.sql b/personnel.sql index 4b0d014..c17f293 100644 --- a/personnel.sql +++ b/personnel.sql @@ -17,6 +17,14 @@ CREATE TABLE Scientifique( PRIMARY KEY(idPersonnel) ); +-- Nathan +CREATE Evenement( + idEvenement INT NOT NULL, + dateDebut DATE, + dateFin DATE, + PRIMARY KEY (idEvenement) +); + -- Nathan CREATE Journee_Porte_Ouvertes( idPorteOuverte INT NOT NULL, From a34d46da868a71df1cd88385985d4fdeb218dfb1 Mon Sep 17 00:00:00 2001 From: Bonnet Ronan Date: Wed, 7 Dec 2022 08:33:27 +0100 Subject: [PATCH 3/4] Create table Congres and Partenaire --- personnel.sql | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/personnel.sql b/personnel.sql index 28ec15f..e0b4c8a 100644 --- a/personnel.sql +++ b/personnel.sql @@ -26,9 +26,26 @@ CREATE Auteur_Externe ( idLabo INT NOT NULL, FOREIGN KEY (idLabo) REFERENCES LaboExterne(idLabo), PRIMARY KEY (idAuteur) - ); +-- Ronan +CREATE Partenaire( + idPartenaire INT NOT NULL, + nom VARCHAR, + pays VARCHAR, + PRIMARY KEY(idPartenaire) +); + +-- Ronan +CREATE Congres( + idCongres INT NOT NULL, + nb_inscriptions INT NOT NULL, + class VARCHAR, + FOREIGN KEY (idCongres) REFERENCES Evenement(idEvenement), + PRIMARY KEY (idCongres) +); + +-- Ronan CREATE Labo_externe( idLabo INT NOT NULL, nom VARCHAR, From 6b69118bbfa980a5136c0ebba3a9fb7a29b41f21 Mon Sep 17 00:00:00 2001 From: Bonnet Ronan Date: Wed, 7 Dec 2022 08:37:02 +0100 Subject: [PATCH 4/4] reorder table creation --- personnel.sql | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/personnel.sql b/personnel.sql index b37d732..33e38be 100644 --- a/personnel.sql +++ b/personnel.sql @@ -17,6 +17,14 @@ CREATE TABLE Scientifique( PRIMARY KEY(idPersonnel) ); +-- Ronan +CREATE Partenaire( + idPartenaire INT NOT NULL, + nom VARCHAR, + pays VARCHAR, + PRIMARY KEY(idPartenaire) +); + -- Nathan CREATE Evenement( idEvenement INT NOT NULL, @@ -25,6 +33,23 @@ CREATE Evenement( PRIMARY KEY (idEvenement) ); +-- Ronan +CREATE Congres( + idCongres INT NOT NULL, + nb_inscriptions INT NOT NULL, + class VARCHAR, + FOREIGN KEY (idCongres) REFERENCES Evenement(idEvenement), + PRIMARY KEY (idCongres) +); + +-- Ronan +CREATE Labo_externe( + idLabo INT NOT NULL, + nom VARCHAR, + pays VARCHAR, + PRIMARY KEY(idLabo) +); + -- Nathan CREATE Journee_Porte_Ouvertes( idPorteOuverte INT NOT NULL, @@ -43,31 +68,6 @@ CREATE Auteur_Externe ( PRIMARY KEY (idAuteur) ); --- Ronan -CREATE Partenaire( - idPartenaire INT NOT NULL, - nom VARCHAR, - pays VARCHAR, - PRIMARY KEY(idPartenaire) -); - --- Ronan -CREATE Congres( - idCongres INT NOT NULL, - nb_inscriptions INT NOT NULL, - class VARCHAR, - FOREIGN KEY (idCongres) REFERENCES Evenement(idEvenement), - PRIMARY KEY (idCongres) -); - --- Ronan -CREATE Labo_externe( - idLabo INT NOT NULL, - nom VARCHAR, - pays VARCHAR, - PRIMARY KEY(idLabo) -); - -- Nathan CREATE Publication ( idPublication INT NOT NULL,