diff --git a/dropall.sql b/dropall.sql index 4d4656e..92049b6 100644 --- a/dropall.sql +++ b/dropall.sql @@ -3,6 +3,7 @@ DROP TYPE grade CASCADE; DROP TABLE Personnel CASCADE; DROP TABLE Doctorant CASCADE; DROP TABLE Scientifique CASCADE; +DROP TABLE Etablissement CASCADE; DROP TABLE Enseignant_Chercheur CASCADE; DROP TABLE Evenement CASCADE; DROP TABLE Congres CASCADE; diff --git a/personnel.sql b/personnel.sql index 96cfb62..11c7819 100644 --- a/personnel.sql +++ b/personnel.sql @@ -88,6 +88,12 @@ CREATE TABLE Labo_externe( ); -- Nathan +CREATE TABLE Evenement( + PRIMARY KEY(idEvenement), + date_debut DATE, + date_fin DATE, +); + CREATE TABLE Journee_Porte_Ouvertes( idPorteOuverte INT NOT NULL, FOREIGN KEY (idPorteOuverte) REFERENCES Evenement(idEvenement), @@ -105,8 +111,8 @@ CREATE TABLE Auteur_Externe ( PRIMARY KEY (idAuteur) ); --- Nathan -CREATE TABLE Publication ( +-- NathanCREATE TABLE Enseignant_Chercheuration INT NOT NULL, +CREATE TABLE Publication( idPublication INT NOT NULL, titre VARCHAR, annee DATE, @@ -126,9 +132,9 @@ CREATE TABLE Participe( ); -- Ronan -CREATE TABLE Preside( - idCongres INT NOT NULL, - idScientifique INT NOT NULL, +CREATE TABLE PreCREATE TABLE Enseignant_Chercheurside( +e_fin DATE, +);es( idScientifique INT NOT NULL, FOREIGN KEY (idCongres) REFERENCES Congres(idCongres), FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique), PRIMARY KEY (idCongres, idScientifique) @@ -143,7 +149,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, @@ -198,13 +204,6 @@ CREATE TABLE Encadrement ( PRIMARY KEY(idScientifique,idDoctorant), ); ---Yasmine -CREATE TABLE Etablissement ( - nom char, - acronyme char, - adresse char, - PRIMARY KEY(idEtablissement), -); --Yasmine CREATE TABLE Partenaire( @@ -215,3 +214,4 @@ CREATE TABLE Partenaire( +