Compare commits
No commits in common. "3316e18cb8257501f80b76cc32bcd6f650c53d08" and "76256523d06526be69a916483449fc8adf69f6d0" have entirely different histories.
3316e18cb8
...
76256523d0
1 changed files with 6 additions and 43 deletions
|
|
@ -8,6 +8,9 @@ CREATE TABLE Personnel
|
|||
date_de_recrutement DATE,
|
||||
);
|
||||
|
||||
CREATE
|
||||
|
||||
|
||||
CREATE TABLE Scientifique(
|
||||
idScientique INT NOT NULL,
|
||||
idPersonnel INT NOT NULL,
|
||||
|
|
@ -15,50 +18,11 @@ CREATE TABLE Scientifique(
|
|||
PRIMARY KEY(idPersonnel)
|
||||
);
|
||||
|
||||
CREATE Publication (
|
||||
idPublication SERIAL NOT NULL,
|
||||
titre TEXT,
|
||||
|
||||
);
|
||||
|
||||
CREATE Participe(
|
||||
idProjet INT NOT NULL,
|
||||
idScientifique INT NOT NULL,
|
||||
FOREIGN KEY (idProjet) REFERENCES Projet(idProjet),
|
||||
FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique),
|
||||
PRIMARY KEY (idProjet, idScientifique)
|
||||
);
|
||||
|
||||
CREATE Preside(
|
||||
idCongres INT NOT NULL,
|
||||
idScientifique INT NOT NULL,
|
||||
FOREIGN KEY (idCongres) REFERENCES Congres(idCongres),
|
||||
FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique),
|
||||
PRIMARY KEY (idCongres, idScientifique)
|
||||
);
|
||||
|
||||
CREATE Publie_Scientifique(
|
||||
idPublication INT NOT NULL,
|
||||
idScientifique INT NOT NULL,
|
||||
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
||||
FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique),
|
||||
PRIMARY KEY (idPublication, idScientifique)
|
||||
);
|
||||
|
||||
CREATE Publie_Doctorant(
|
||||
idPublication INT NOT NULL,
|
||||
idDoctorant INT NOT NULL,
|
||||
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
||||
FOREIGN KEY (idDoctorant) REFERENCES Doctorant(idDoctorant),
|
||||
PRIMARY KEY (idPublication, idDoctorant)
|
||||
);
|
||||
|
||||
CREATE TABLE Publie_Externe(
|
||||
idPublication INT NOT NULL,
|
||||
idAuteurExterne INT NOT NULL,
|
||||
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
||||
FOREIGN KEY (idAuteurExterne) REFERENCES Auteur_Externe(idAuteur),
|
||||
PRIMARY KEY (idPublication, idAuteurExterne)
|
||||
FOREIGN KEY (idAuteurExterne) REFERENCES Auteur_Externe(idAuteur)
|
||||
|
||||
);
|
||||
|
||||
|
|
@ -66,8 +30,7 @@ CREATE TABLE Participe_Externe(
|
|||
idProjet INT NOT NULL,
|
||||
idPartenaire INT NOT NULL,
|
||||
FOREIGN KEY (idProjet) REFERENCES Projet(idProjet),
|
||||
FOREIGN KEY (idPartenaire) REFERENCES Partenaire(idPartenaire),
|
||||
PRIMARY KEY (idProjet, idPartenaire)
|
||||
FOREIGN KEY (idPartenaire) REFERENCES Partenaire(idPartenaire)
|
||||
);
|
||||
|
||||
CREATE TABLE Organise (
|
||||
|
|
@ -76,4 +39,4 @@ CREATE TABLE Organise (
|
|||
FOREIGN KEY (idPortesOuverte) REFERENCES Journee_Portes_Ouvertes(idPorte_Ouverte),
|
||||
FOREIGN KEY (idPersonnel) REFERENCES Personnel(idPersonnel),
|
||||
PRIMARY KEY(idPortesOuverte, idPersonnel)
|
||||
);
|
||||
);
|
||||
Loading…
Reference in a new issue