2022-11-30 16:13:35 +01:00
|
|
|
CREATE TABLE Personnel
|
2022-11-30 16:27:25 +01:00
|
|
|
(
|
|
|
|
idPersonnel int CONSTRAINT UnePersonne PRIMARY KEY,
|
|
|
|
nom char,
|
|
|
|
prenom char,
|
|
|
|
date_de_naissance date,
|
|
|
|
adress char,
|
|
|
|
date_de_recrutement date,
|
|
|
|
);
|
2022-11-30 16:22:37 +01:00
|
|
|
|
2022-11-30 16:36:19 +01:00
|
|
|
CREATE Participe(
|
|
|
|
idProjet INT NOT NULL,
|
|
|
|
idScientifique INT NOT NULL,
|
|
|
|
FOREIGN KEY (idProjet) REFERENCES Projet(idProjet),
|
|
|
|
FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique)
|
|
|
|
);
|
|
|
|
|
2022-11-30 16:35:17 +01:00
|
|
|
CREATE Preside(
|
|
|
|
idCongres INT NOT NULL,
|
|
|
|
idScientifique INT NOT NULL,
|
|
|
|
FOREIGN KEY (idCongres) REFERENCES Congres(idCongres),
|
|
|
|
FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique)
|
|
|
|
);
|
2022-11-30 16:34:37 +01:00
|
|
|
|
|
|
|
CREATE Publie_Scientifique(
|
|
|
|
idPublication INT NOT NULL,
|
|
|
|
idScientifique INT NOT NULL,
|
|
|
|
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
|
|
|
FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique)
|
|
|
|
);
|
|
|
|
|
2022-11-30 16:30:07 +01:00
|
|
|
CREATE Publie_Doctorant(
|
|
|
|
idPublication INT NOT NULL,
|
|
|
|
idDoctorant INT NOT NULL,
|
|
|
|
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
|
|
|
FOREIGN KEY (idDoctorant) REFERENCES Doctorant(idDoctorant)
|
|
|
|
);
|
|
|
|
|
2022-11-30 16:28:38 +01:00
|
|
|
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)
|
|
|
|
|
|
|
|
);
|
2022-11-30 16:22:37 +01:00
|
|
|
|
2022-11-30 16:25:03 +01:00
|
|
|
CREATE TABLE Participe_Externe(
|
|
|
|
idProjet INT NOT NULL,
|
|
|
|
idPartenaire INT NOT NULL,
|
|
|
|
FOREIGN KEY (idProjet) REFERENCES Projet(idProjet),
|
|
|
|
FOREIGN KEY (idPartenaire) REFERENCES Partenaire(idPartenaire)
|
|
|
|
);
|
2022-11-30 16:22:37 +01:00
|
|
|
|
|
|
|
CREATE TABLE Organise (
|
|
|
|
idPortesOuverte INT NOT NULL,
|
|
|
|
idPersonnel INT NOT NULL,
|
|
|
|
FOREIGN KEY (idPortesOuverte) REFERENCES Journee_Portes_Ouvertes(idPorte_Ouverte),
|
|
|
|
FOREIGN KEY (idPersonnel) REFERENCES Personnel(idPersonnel),
|
|
|
|
PRIMARY KEY(idPortesOuverte, idPersonnel)
|
|
|
|
);
|