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)
|
||||
);
|
||||
|
||||
-- Nathan
|
||||
CREATE Auteur_Externe (
|
||||
idAuteur INT NOT NULL,
|
||||
nom VARCHAR,
|
||||
pays VARCHAR,
|
||||
PRIMARY KEY(idPartenaire)
|
||||
);
|
||||
|
||||
-- Nathan
|
||||
CREATE TYPE echelon AS ENUM (
|
||||
'A*',
|
||||
|
@ -61,7 +53,7 @@ CREATE TYPE grade AS ENUM (
|
|||
);
|
||||
|
||||
-- Nathan
|
||||
CREATE Evenement(
|
||||
CREATE TABLE Evenement(
|
||||
idEvenement INT NOT NULL,
|
||||
dateDebut DATE,
|
||||
dateFin DATE,
|
||||
|
@ -69,7 +61,7 @@ CREATE Evenement(
|
|||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Congres(
|
||||
CREATE TABLE Congres(
|
||||
idCongres INT NOT NULL,
|
||||
nb_inscriptions INT NOT NULL,
|
||||
class VARCHAR,
|
||||
|
@ -78,7 +70,7 @@ CREATE Congres(
|
|||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Labo_externe(
|
||||
CREATE TABLE Labo_externe(
|
||||
idLabo INT NOT NULL,
|
||||
nom VARCHAR,
|
||||
pays VARCHAR,
|
||||
|
@ -86,14 +78,14 @@ CREATE Labo_externe(
|
|||
);
|
||||
|
||||
-- Nathan
|
||||
CREATE Journee_Porte_Ouvertes(
|
||||
CREATE TABLE Journee_Porte_Ouvertes(
|
||||
idPorteOuverte INT NOT NULL,
|
||||
FOREIGN KEY (idPorteOuverte) REFERENCES Evenement(idEvenement),
|
||||
PRIMARY KEY (idPorteOuverte)
|
||||
);
|
||||
|
||||
-- Nathan
|
||||
CREATE Auteur_Externe (
|
||||
CREATE TABLE Auteur_Externe (
|
||||
idAuteur INT NOT NULL,
|
||||
nom VARCHAR,
|
||||
prenom VARCHAR,
|
||||
|
@ -104,7 +96,7 @@ CREATE Auteur_Externe (
|
|||
);
|
||||
|
||||
-- Nathan
|
||||
CREATE Publication (
|
||||
CREATE TABLE Publication (
|
||||
idPublication INT NOT NULL,
|
||||
titre VARCHAR,
|
||||
annee DATE,
|
||||
|
@ -115,7 +107,7 @@ CREATE Publication (
|
|||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Participe(
|
||||
CREATE TABLE Participe(
|
||||
idProjet INT NOT NULL,
|
||||
idScientifique INT NOT NULL,
|
||||
FOREIGN KEY (idProjet) REFERENCES Projet(idProjet),
|
||||
|
@ -124,7 +116,7 @@ CREATE Participe(
|
|||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Preside(
|
||||
CREATE TABLE Preside(
|
||||
idCongres INT NOT NULL,
|
||||
idScientifique INT NOT NULL,
|
||||
FOREIGN KEY (idCongres) REFERENCES Congres(idCongres),
|
||||
|
@ -133,7 +125,7 @@ CREATE Preside(
|
|||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Publie_Scientifique(
|
||||
CREATE TABLE Publie_Scientifique(
|
||||
idPublication INT NOT NULL,
|
||||
idScientifique INT NOT NULL,
|
||||
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
||||
|
@ -142,7 +134,7 @@ CREATE Publie_Scientifique(
|
|||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Publie_Doctorant(
|
||||
CREATE TABLE Publie_Doctorant(
|
||||
idPublication INT NOT NULL,
|
||||
idDoctorant INT NOT NULL,
|
||||
FOREIGN KEY (idPublication) REFERENCES Publication(idPublication),
|
||||
|
|
Loading…
Reference in a new issue