Merge branch 'master' of https://git.etud.insa-toulouse.fr/rbonnet/tp_bdd2
Ens_Cher
This commit is contained in:
commit
23c150e1b8
1 changed files with 10 additions and 18 deletions
|
@ -36,14 +36,6 @@ CREATE TABLE Enseignant_Chercheur(
|
||||||
PRIMARY KEY (idEnseignant)
|
PRIMARY KEY (idEnseignant)
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Nathan
|
|
||||||
CREATE Auteur_Externe (
|
|
||||||
idAuteur INT NOT NULL,
|
|
||||||
nom VARCHAR,
|
|
||||||
pays VARCHAR,
|
|
||||||
PRIMARY KEY(idPartenaire)
|
|
||||||
);
|
|
||||||
|
|
||||||
-- Nathan
|
-- Nathan
|
||||||
CREATE TYPE echelon AS ENUM (
|
CREATE TYPE echelon AS ENUM (
|
||||||
'A*',
|
'A*',
|
||||||
|
@ -61,7 +53,7 @@ CREATE TYPE grade AS ENUM (
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Nathan
|
-- Nathan
|
||||||
CREATE Evenement(
|
CREATE TABLE Evenement(
|
||||||
idEvenement INT NOT NULL,
|
idEvenement INT NOT NULL,
|
||||||
dateDebut DATE,
|
dateDebut DATE,
|
||||||
dateFin DATE,
|
dateFin DATE,
|
||||||
|
@ -69,7 +61,7 @@ CREATE Evenement(
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Ronan
|
-- Ronan
|
||||||
CREATE Congres(
|
CREATE TABLE Congres(
|
||||||
idCongres INT NOT NULL,
|
idCongres INT NOT NULL,
|
||||||
nb_inscriptions INT NOT NULL,
|
nb_inscriptions INT NOT NULL,
|
||||||
class VARCHAR,
|
class VARCHAR,
|
||||||
|
@ -78,7 +70,7 @@ CREATE Congres(
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Ronan
|
-- Ronan
|
||||||
CREATE Labo_externe(
|
CREATE TABLE Labo_externe(
|
||||||
idLabo INT NOT NULL,
|
idLabo INT NOT NULL,
|
||||||
nom VARCHAR,
|
nom VARCHAR,
|
||||||
pays VARCHAR,
|
pays VARCHAR,
|
||||||
|
@ -86,14 +78,14 @@ CREATE Labo_externe(
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Nathan
|
-- Nathan
|
||||||
CREATE Journee_Porte_Ouvertes(
|
CREATE TABLE Journee_Porte_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)
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Nathan
|
-- Nathan
|
||||||
CREATE Auteur_Externe (
|
CREATE TABLE Auteur_Externe (
|
||||||
idAuteur INT NOT NULL,
|
idAuteur INT NOT NULL,
|
||||||
nom VARCHAR,
|
nom VARCHAR,
|
||||||
prenom VARCHAR,
|
prenom VARCHAR,
|
||||||
|
@ -104,7 +96,7 @@ CREATE Auteur_Externe (
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Nathan
|
-- Nathan
|
||||||
CREATE Publication (
|
CREATE TABLE Publication (
|
||||||
idPublication INT NOT NULL,
|
idPublication INT NOT NULL,
|
||||||
titre VARCHAR,
|
titre VARCHAR,
|
||||||
annee DATE,
|
annee DATE,
|
||||||
|
@ -115,7 +107,7 @@ CREATE Publication (
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Ronan
|
-- Ronan
|
||||||
CREATE Participe(
|
CREATE TABLE Participe(
|
||||||
idProjet INT NOT NULL,
|
idProjet INT NOT NULL,
|
||||||
idScientifique INT NOT NULL,
|
idScientifique INT NOT NULL,
|
||||||
FOREIGN KEY (idProjet) REFERENCES Projet(idProjet),
|
FOREIGN KEY (idProjet) REFERENCES Projet(idProjet),
|
||||||
|
@ -124,7 +116,7 @@ CREATE Participe(
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Ronan
|
-- Ronan
|
||||||
CREATE Preside(
|
CREATE TABLE Preside(
|
||||||
idCongres INT NOT NULL,
|
idCongres INT NOT NULL,
|
||||||
idScientifique INT NOT NULL,
|
idScientifique INT NOT NULL,
|
||||||
FOREIGN KEY (idCongres) REFERENCES Congres(idCongres),
|
FOREIGN KEY (idCongres) REFERENCES Congres(idCongres),
|
||||||
|
@ -133,7 +125,7 @@ CREATE Preside(
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Ronan
|
-- Ronan
|
||||||
CREATE Publie_Scientifique(
|
CREATE TABLE Publie_Scientifique(
|
||||||
idPublication INT NOT NULL,
|
idPublication INT NOT NULL,
|
||||||
idScientifique INT NOT NULL,
|
idScientifique INT NOT NULL,
|
||||||
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
||||||
|
@ -142,7 +134,7 @@ CREATE Publie_Scientifique(
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Ronan
|
-- Ronan
|
||||||
CREATE Publie_Doctorant(
|
CREATE TABLE Publie_Doctorant(
|
||||||
idPublication INT NOT NULL,
|
idPublication INT NOT NULL,
|
||||||
idDoctorant INT NOT NULL,
|
idDoctorant INT NOT NULL,
|
||||||
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
||||||
|
|
Loading…
Reference in a new issue