table Publication + Auteur_Externe
This commit is contained in:
parent
4e3d8bd056
commit
4787d7c4e4
1 changed files with 29 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
-- Axel ou Yasmine
|
||||||
CREATE TABLE Personnel
|
CREATE TABLE Personnel
|
||||||
(
|
(
|
||||||
idPersonnel INT CONSTRAINT UnePersonne PRIMARY KEY,
|
idPersonnel INT CONSTRAINT UnePersonne PRIMARY KEY,
|
||||||
|
@ -8,6 +9,7 @@ CREATE TABLE Personnel
|
||||||
date_de_recrutement DATE,
|
date_de_recrutement DATE,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Axel ou Yasmine
|
||||||
CREATE TABLE Scientifique(
|
CREATE TABLE Scientifique(
|
||||||
idScientique INT NOT NULL,
|
idScientique INT NOT NULL,
|
||||||
idPersonnel INT NOT NULL,
|
idPersonnel INT NOT NULL,
|
||||||
|
@ -15,12 +17,29 @@ CREATE TABLE Scientifique(
|
||||||
PRIMARY KEY(idPersonnel)
|
PRIMARY KEY(idPersonnel)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE Publication (
|
-- Nathan
|
||||||
idPublication SERIAL NOT NULL,
|
CREATE Auteur_Externe (
|
||||||
titre TEXT,
|
idAuteur INT NOT NULL,
|
||||||
|
nom VARCHAR,
|
||||||
|
prenom VARCHAR,
|
||||||
|
adresseMail VARCHAR,
|
||||||
|
idLabo INT NOT NULL,
|
||||||
|
FOREIGN KEY (idLabo) REFERENCES LaboExterne(idLabo),
|
||||||
|
PRIMARY KEY (idAuteur)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Nathan
|
||||||
|
CREATE Publication (
|
||||||
|
idPublication INT NOT NULL,
|
||||||
|
titre VARCHAR,
|
||||||
|
annee DATE,
|
||||||
|
nomConf VARCHAR,
|
||||||
|
classeConf VARCHAR,
|
||||||
|
nbPages INT,
|
||||||
|
PRIMARY KEY (idPublication)
|
||||||
|
);
|
||||||
|
|
||||||
|
-- Ronan
|
||||||
CREATE Participe(
|
CREATE Participe(
|
||||||
idProjet INT NOT NULL,
|
idProjet INT NOT NULL,
|
||||||
idScientifique INT NOT NULL,
|
idScientifique INT NOT NULL,
|
||||||
|
@ -29,6 +48,7 @@ CREATE Participe(
|
||||||
PRIMARY KEY (idProjet, idScientifique)
|
PRIMARY KEY (idProjet, idScientifique)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Ronan
|
||||||
CREATE Preside(
|
CREATE Preside(
|
||||||
idCongres INT NOT NULL,
|
idCongres INT NOT NULL,
|
||||||
idScientifique INT NOT NULL,
|
idScientifique INT NOT NULL,
|
||||||
|
@ -37,6 +57,7 @@ CREATE Preside(
|
||||||
PRIMARY KEY (idCongres, idScientifique)
|
PRIMARY KEY (idCongres, idScientifique)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Ronan
|
||||||
CREATE Publie_Scientifique(
|
CREATE Publie_Scientifique(
|
||||||
idPublication INT NOT NULL,
|
idPublication INT NOT NULL,
|
||||||
idScientifique INT NOT NULL,
|
idScientifique INT NOT NULL,
|
||||||
|
@ -45,6 +66,7 @@ CREATE Publie_Scientifique(
|
||||||
PRIMARY KEY (idPublication, idScientifique)
|
PRIMARY KEY (idPublication, idScientifique)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Ronan
|
||||||
CREATE Publie_Doctorant(
|
CREATE Publie_Doctorant(
|
||||||
idPublication INT NOT NULL,
|
idPublication INT NOT NULL,
|
||||||
idDoctorant INT NOT NULL,
|
idDoctorant INT NOT NULL,
|
||||||
|
@ -53,6 +75,7 @@ CREATE Publie_Doctorant(
|
||||||
PRIMARY KEY (idPublication, idDoctorant)
|
PRIMARY KEY (idPublication, idDoctorant)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Ronan
|
||||||
CREATE TABLE Publie_Externe(
|
CREATE TABLE Publie_Externe(
|
||||||
idPublication INT NOT NULL,
|
idPublication INT NOT NULL,
|
||||||
idAuteurExterne INT NOT NULL,
|
idAuteurExterne INT NOT NULL,
|
||||||
|
@ -62,6 +85,7 @@ CREATE TABLE Publie_Externe(
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Ronan
|
||||||
CREATE TABLE Participe_Externe(
|
CREATE TABLE Participe_Externe(
|
||||||
idProjet INT NOT NULL,
|
idProjet INT NOT NULL,
|
||||||
idPartenaire INT NOT NULL,
|
idPartenaire INT NOT NULL,
|
||||||
|
@ -70,6 +94,7 @@ CREATE TABLE Participe_Externe(
|
||||||
PRIMARY KEY (idProjet, idPartenaire)
|
PRIMARY KEY (idProjet, idPartenaire)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Ronan
|
||||||
CREATE TABLE Organise (
|
CREATE TABLE Organise (
|
||||||
idPortesOuverte INT NOT NULL,
|
idPortesOuverte INT NOT NULL,
|
||||||
idPersonnel INT NOT NULL,
|
idPersonnel INT NOT NULL,
|
||||||
|
|
Loading…
Reference in a new issue