reorder table creation
This commit is contained in:
parent
aa6c4d0d6b
commit
6b69118bbf
1 changed files with 25 additions and 25 deletions
|
@ -17,6 +17,14 @@ CREATE TABLE Scientifique(
|
|||
PRIMARY KEY(idPersonnel)
|
||||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Partenaire(
|
||||
idPartenaire INT NOT NULL,
|
||||
nom VARCHAR,
|
||||
pays VARCHAR,
|
||||
PRIMARY KEY(idPartenaire)
|
||||
);
|
||||
|
||||
-- Nathan
|
||||
CREATE Evenement(
|
||||
idEvenement INT NOT NULL,
|
||||
|
@ -25,6 +33,23 @@ CREATE Evenement(
|
|||
PRIMARY KEY (idEvenement)
|
||||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Congres(
|
||||
idCongres INT NOT NULL,
|
||||
nb_inscriptions INT NOT NULL,
|
||||
class VARCHAR,
|
||||
FOREIGN KEY (idCongres) REFERENCES Evenement(idEvenement),
|
||||
PRIMARY KEY (idCongres)
|
||||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Labo_externe(
|
||||
idLabo INT NOT NULL,
|
||||
nom VARCHAR,
|
||||
pays VARCHAR,
|
||||
PRIMARY KEY(idLabo)
|
||||
);
|
||||
|
||||
-- Nathan
|
||||
CREATE Journee_Porte_Ouvertes(
|
||||
idPorteOuverte INT NOT NULL,
|
||||
|
@ -43,31 +68,6 @@ CREATE Auteur_Externe (
|
|||
PRIMARY KEY (idAuteur)
|
||||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Partenaire(
|
||||
idPartenaire INT NOT NULL,
|
||||
nom VARCHAR,
|
||||
pays VARCHAR,
|
||||
PRIMARY KEY(idPartenaire)
|
||||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Congres(
|
||||
idCongres INT NOT NULL,
|
||||
nb_inscriptions INT NOT NULL,
|
||||
class VARCHAR,
|
||||
FOREIGN KEY (idCongres) REFERENCES Evenement(idEvenement),
|
||||
PRIMARY KEY (idCongres)
|
||||
);
|
||||
|
||||
-- Ronan
|
||||
CREATE Labo_externe(
|
||||
idLabo INT NOT NULL,
|
||||
nom VARCHAR,
|
||||
pays VARCHAR,
|
||||
PRIMARY KEY(idLabo)
|
||||
);
|
||||
|
||||
-- Nathan
|
||||
CREATE Publication (
|
||||
idPublication INT NOT NULL,
|
||||
|
|
Loading…
Reference in a new issue