From 29ff7fa90068aff6e5b8311ed1da5c45add57217 Mon Sep 17 00:00:00 2001 From: Bonnet Ronan Date: Wed, 7 Dec 2022 08:24:08 +0100 Subject: [PATCH] Create Labo_externe table --- personnel.sql | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/personnel.sql b/personnel.sql index d3f25f5..4ed3d5b 100644 --- a/personnel.sql +++ b/personnel.sql @@ -1,20 +1,27 @@ CREATE TABLE Personnel ( idPersonnel INT CONSTRAINT UnePersonne PRIMARY KEY, - nom CHAR, - prenom CHAR, + nom VARCHAR, + prenom VARCHAR, date_de_naissance DATE, - adress CHAR, + adress VARCHAR, date_de_recrutement DATE, ); CREATE TABLE Scientifique( idScientique INT NOT NULL, idPersonnel INT NOT NULL, - grade CHAR, + grade VARCHAR, PRIMARY KEY(idPersonnel) ); +CREATE Labo_externe( + idLabo INT NOT NULL, + nom VARCHAR, + pays VARCHAR, + PRIMARY KEY(idLabo) +); + CREATE Publication ( idPublication SERIAL NOT NULL, titre TEXT,