Commit 2572201b authored by Nu Huyen Trang Pham's avatar Nu Huyen Trang Pham
Browse files

Update create_table.sql

parent 6cc0ced7
...@@ -68,6 +68,7 @@ Create table Medicament ( ...@@ -68,6 +68,7 @@ Create table Medicament (
Description varchar(100) NOT NULL Description varchar(100) NOT NULL
); );
/*C'est une classe d'association*/
Create table Medicament_Effet ( Create table Medicament_Effet (
Medicament INT, Medicament INT,
foreign key(Medicament) references Medicament(ID_Medicament), foreign key(Medicament) references Medicament(ID_Medicament),
...@@ -75,6 +76,7 @@ Create table Medicament_Effet ( ...@@ -75,6 +76,7 @@ Create table Medicament_Effet (
foreign key(Effets_secondaires) references Effets_secondaires(ID_effet_secondaire) foreign key(Effets_secondaires) references Effets_secondaires(ID_effet_secondaire)
); );
/*C'est une classe d'association*/
Create table Med_correspond_Ani ( Create table Med_correspond_Ani (
ID_Medicament INT, ID_Medicament INT,
foreign key(ID_Medicament) references Medicament(ID_Medicament), foreign key(ID_Medicament) references Medicament(ID_Medicament),
...@@ -94,6 +96,7 @@ Create table Traitement ( ...@@ -94,6 +96,7 @@ Create table Traitement (
CHECK (Duree <> '00:00:00') CHECK (Duree <> '00:00:00')
); );
/*C'est une classe d'association*/
Create table Traitement_Medicament ( Create table Traitement_Medicament (
Traitement INT, Traitement INT,
foreign key(Traitement) references Traitement(ID_Traitement), foreign key(Traitement) references Traitement(ID_Traitement),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment