2022-11-30 16:13:35 +01:00
|
|
|
CREATE TABLE Personnel
|
2022-11-30 16:22:37 +01:00
|
|
|
();
|
|
|
|
|
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)
|
|
|
|
);
|