fix syntax errors
This commit is contained in:
parent
017fd4c9e5
commit
7ae31f56e6
1 changed files with 21 additions and 16 deletions
|
@ -36,8 +36,7 @@ CREATE TABLE Doctorant(
|
||||||
|
|
||||||
--Yasmine
|
--Yasmine
|
||||||
CREATE TABLE Scientifique(
|
CREATE TABLE Scientifique(
|
||||||
idScientique INT NOT NULL,
|
idScientifique INT NOT NULL,
|
||||||
idPersonnel INT NOT NULL,
|
|
||||||
grade VARCHAR,
|
grade VARCHAR,
|
||||||
FOREIGN KEY (idScientifique) REFERENCES Personnel(idPersonnel),
|
FOREIGN KEY (idScientifique) REFERENCES Personnel(idPersonnel),
|
||||||
PRIMARY KEY (idScientifique)
|
PRIMARY KEY (idScientifique)
|
||||||
|
@ -89,7 +88,7 @@ CREATE TABLE Labo_externe(
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE Journee_Porte_Ouvertes(
|
CREATE TABLE Journee_Portes_Ouvertes(
|
||||||
idPorteOuverte INT NOT NULL,
|
idPorteOuverte INT NOT NULL,
|
||||||
FOREIGN KEY (idPorteOuverte) REFERENCES Evenement(idEvenement),
|
FOREIGN KEY (idPorteOuverte) REFERENCES Evenement(idEvenement),
|
||||||
PRIMARY KEY (idPorteOuverte)
|
PRIMARY KEY (idPorteOuverte)
|
||||||
|
@ -117,6 +116,21 @@ CREATE TABLE Publication(
|
||||||
PRIMARY KEY (idPublication)
|
PRIMARY KEY (idPublication)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
--Yasmine
|
||||||
|
CREATE TABLE Projet (
|
||||||
|
idProjet INT NOT NULL,
|
||||||
|
titre VARCHAR,
|
||||||
|
acronyme VARCHAR,
|
||||||
|
annee_debut DATE,
|
||||||
|
annee_fin DATE,
|
||||||
|
duree INT NOT NULL,
|
||||||
|
budget_Laas INT NOT NULL,
|
||||||
|
cout INT NOT NULL,
|
||||||
|
idMeneurProjet INT NOT NULL,
|
||||||
|
FOREIGN KEY (idMeneurProjet) REFERENCES Scientifique(idScientifique),
|
||||||
|
PRIMARY KEY(idProjet)
|
||||||
|
);
|
||||||
|
|
||||||
-- Ronan
|
-- Ronan
|
||||||
CREATE TABLE Participe(
|
CREATE TABLE Participe(
|
||||||
idProjet INT NOT NULL,
|
idProjet INT NOT NULL,
|
||||||
|
@ -128,6 +142,8 @@ CREATE TABLE Participe(
|
||||||
|
|
||||||
-- Ronan
|
-- Ronan
|
||||||
CREATE TABLE Preside(
|
CREATE TABLE Preside(
|
||||||
|
idCongres INT NOT NULL,
|
||||||
|
idScientifique INT NOT NULL,
|
||||||
FOREIGN KEY (idCongres) REFERENCES Congres(idCongres),
|
FOREIGN KEY (idCongres) REFERENCES Congres(idCongres),
|
||||||
FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique),
|
FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique),
|
||||||
PRIMARY KEY (idCongres, idScientifique)
|
PRIMARY KEY (idCongres, idScientifique)
|
||||||
|
@ -173,22 +189,11 @@ CREATE TABLE Participe_Externe(
|
||||||
CREATE TABLE Organise (
|
CREATE TABLE Organise (
|
||||||
idPortesOuverte INT NOT NULL,
|
idPortesOuverte INT NOT NULL,
|
||||||
idPersonnel INT NOT NULL,
|
idPersonnel INT NOT NULL,
|
||||||
FOREIGN KEY (idPortesOuverte) REFERENCES Journee_Portes_Ouvertes(idPorte_Ouverte),
|
FOREIGN KEY (idPortesOuverte) REFERENCES Journee_Portes_Ouvertes(idPorteOuverte),
|
||||||
FOREIGN KEY (idPersonnel) REFERENCES Personnel(idPersonnel),
|
FOREIGN KEY (idPersonnel) REFERENCES Personnel(idPersonnel),
|
||||||
PRIMARY KEY(idPortesOuverte, idPersonnel)
|
PRIMARY KEY(idPortesOuverte, idPersonnel)
|
||||||
);
|
);
|
||||||
--Yasmine
|
|
||||||
CREATE TABLE Projet (
|
|
||||||
titre VARCHAR,
|
|
||||||
acronyme VARCHAR,
|
|
||||||
annee_debut date,
|
|
||||||
annee_fin VARCHAR,
|
|
||||||
duree INT NOT NULL,
|
|
||||||
budget_Laas INT NOT NULL,
|
|
||||||
cout INT NOT NULL,
|
|
||||||
FOREIGN KEY (idScientifique) REFERENCES Scientifique(idScientifique),
|
|
||||||
PRIMARY KEY(idProjet)
|
|
||||||
);
|
|
||||||
--Yasmine
|
--Yasmine
|
||||||
CREATE TABLE Encadrement (
|
CREATE TABLE Encadrement (
|
||||||
idDoctorant INT NOT NULL,
|
idDoctorant INT NOT NULL,
|
||||||
|
|
Loading…
Reference in a new issue