From 6b69118bbfa980a5136c0ebba3a9fb7a29b41f21 Mon Sep 17 00:00:00 2001 From: Bonnet Ronan Date: Wed, 7 Dec 2022 08:37:02 +0100 Subject: [PATCH] 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,