Compare commits

..

No commits in common. "384b5619b9d984926df58bef443c157fac7d98f6" and "3e7ba6c442445304457b447e9115dcfd8d9b232c" have entirely different histories.

2 changed files with 67 additions and 92 deletions

View file

@ -1,95 +1,12 @@
---------------------------------------------------------------------- INSERT INTO Personnel VALUES (
-- -- 0,
-- Personnel --
-- --
----------------------------------------------------------------------
-- Nathan
INSERT nom, prenom, date_de_naissance, adress, date_de_recrutement INTO Personnel VALUES (
'Billard', 'Billard',
'Nathan', 'Nathan',
DATE '2000-12-25', DATE '2000-12-25',
'15 avenue du Colonel Roche', 'chez Nathan',
DATE '2020-9-15'
);
INSERT nom, prenom, date_de_naissance, adress, date_de_recrutement INTO Personnel VALUES (
'Bonnet',
'Ronan',
DATE '2002-12-25',
'chez Ronan',
'2020-9-15' '2020-9-15'
); );
INSERT nom, prenom, date_de_naissance, adress, date_de_recrutement INTO Personnel VALUES (
'Olougouna',
'Axel',
DATE '2001-12-25',
'chez Axel',
'2020-9-15'
);
INSERT nom, prenom, date_de_naissance, adress, date_de_recrutement INTO Personnel VALUES (
'Grane',
'Yasmine',
DATE '2001-12-25',
'chez Yasmine',
'2020-9-15'
);
INSERT nom, prenom, date_de_naissance, adress, date_de_recrutement INTO Personnel VALUES (
'Wonderland',
'Alice',
DATE '1978-12-25',
'chez les lapins',
'2020-9-15'
);
INSERT nom, prenom, date_de_naissance, adress, date_de_recrutement INTO Personnel VALUES (
'Le Bricoleur',
'Bob',
DATE '1878-12-25',
'au chantier',
'2020-9-15'
);
INSERT nom, prenom, date_de_naissance, adress, date_de_recrutement INTO Personnel VALUES (
'Romilly',
'Étienne',
DATE '1995-03-17',
'32 avenue des Maronnais',
DATE '2013-09-01'
);
INSERT nom, prenom, date_de_naissance, adress, date_de_recrutement INTO Personnel VALUES (
'Jacques',
'Léonne',
DATE '2002-01-07',
'158 rue de la passion',
DATE '2021-08-25'
);
----------------------------------------------------------------------
-- --
-- Doctorant --
-- --
----------------------------------------------------------------------
INSERT date_debut_these, date_soutenance INTO Doctorant VALUES (
DATE '2020-06-23',
DATE '2023-08-03'
);
INSERT date_debut_these, date_soutenance INTO Doctorant VALUES (
DATE '2019-07-13',
DATE '2020-11-08'
);
INSERT date_debut_these, date_soutenance INTO Doctorant VALUES (
DATE '2021-07-30',
DATE '2022-09-29'
);
--Axel --Axel
INSERT INTO Etablissement VALUES ( INSERT INTO Etablissement VALUES (
@ -116,13 +33,74 @@ INSERT INTO Etablissement VALUES (
'Paris' 'Paris'
); );
--Axel INSERT INTO Personnel VALUES (
1,
'Bonnet',
'Ronan',
DATE '2002-12-25',
'chez Ronan',
'2020-9-15'
);
INSERT INTO Personnel VALUES (
2,
'Olougouna',
'Axel',
DATE '2001-12-25',
'chez Axel',
'2020-9-15'
);
INSERT INTO Personnel VALUES (
3,
'Grane',
'Yasmine',
DATE '2001-12-25',
'chez Yasmine',
'2020-9-15'
);
INSERT INTO Personnel VALUES (
4,
'Wonderland',
'Alice',
DATE '1978-12-25',
'chez les lapins',
'2020-9-15'
);
INSERT INTO Personnel VALUES (
5,
'Le Bricoleur',
'Bob',
DATE '1878-12-25',
'au chantier',
'2020-9-15'
);--Axel
INSERT INTO Partenaire VALUES ( INSERT INTO Partenaire VALUES (
01, 01,
'GFGH', 'GFGH',
'Allemagne' 'Allemagne'
); );
INSERT INTO Doctorant VALUES (
4,
DATE '2020-06-23',
DATE '2023-08-03'
);
INSERT INTO Doctorant VALUES (
1,
DATE '2019-07-13',
DATE '2020-11-08'
);
iNSERT INTO Doctorant VALUES (
2,
DATE '2021-07-30',
DATE '2022-09-29'
);
INSERT INTO Scientifique VALUES ( INSERT INTO Scientifique VALUES (
3, 3,
'cr1' 'cr1'
@ -148,7 +126,6 @@ INSERT INTO Encadrement VALUES (
2, 2,
3 3
); );
INSERT INTO Labo_externe VALUES ( INSERT INTO Labo_externe VALUES (
1, 1,
'CNES', 'CNES',

View file

@ -27,7 +27,7 @@ CREATE TYPE T_ECHELON AS ENUM (
-- Axel -- Axel
CREATE TABLE Personnel CREATE TABLE Personnel
( (
idPersonnel SERIAL CONSTRAINT UnePersonne PRIMARY KEY, idPersonnel INT CONSTRAINT UnePersonne PRIMARY KEY,
nom VARCHAR, nom VARCHAR,
prenom VARCHAR, prenom VARCHAR,
date_de_naissance DATE, date_de_naissance DATE,
@ -37,9 +37,7 @@ CREATE TABLE Personnel
--Axel --Axel
CREATE TABLE Doctorant( CREATE TABLE Doctorant(
idDoctorant SERIAL NOT NULL, idDoctorant INécheloe DATE,
date_debut_these DATE,
date_soutenance DATE,
FOREIGN KEY (idDoctorant) REFERENCES Personnel(idPersonnel) ON DELETE CASCADE, FOREIGN KEY (idDoctorant) REFERENCES Personnel(idPersonnel) ON DELETE CASCADE,
PRIMARY KEY(idDoctorant) PRIMARY KEY(idDoctorant)
); );