Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nu Huyen Trang Pham
Projet NF17 td5 grps4
Commits
6cc0ced7
Commit
6cc0ced7
authored
Apr 04, 2019
by
Nu Huyen Trang Pham
Browse files
Update create_table.sql
parent
cbdb6825
Changes
1
Hide whitespace changes
Inline
Side-by-side
create_table.sql
View file @
6cc0ced7
...
@@ -15,7 +15,7 @@ Create table Classe_animal (
...
@@ -15,7 +15,7 @@ Create table Classe_animal (
);
);
Create
table
Veterinaire
(
Create
table
Veterinaire
(
ID_personnel
INT
NOT
NULL
primary
key
,
ID_personnel
INT
NOT
NULL
PRIMARY
KEY
,
Nom
varchar
(
30
)
NOT
NULL
,
Nom
varchar
(
30
)
NOT
NULL
,
prenom
varchar
(
30
)
NOT
NULL
,
prenom
varchar
(
30
)
NOT
NULL
,
Date_de_naissance
date
NOT
NULL
,
Date_de_naissance
date
NOT
NULL
,
...
@@ -26,7 +26,7 @@ Create table Veterinaire (
...
@@ -26,7 +26,7 @@ Create table Veterinaire (
);
);
Create
table
Assistant
(
Create
table
Assistant
(
ID_personnel
INT
NOT
NULL
primary
key
,
ID_personnel
INT
NOT
NULL
PRIMARY
KEY
,
Nom
varchar
(
30
)
NOT
NULL
,
Nom
varchar
(
30
)
NOT
NULL
,
prenom
varchar
(
30
)
NOT
NULL
,
prenom
varchar
(
30
)
NOT
NULL
,
Date_de_naissance
date
NOT
NULL
,
Date_de_naissance
date
NOT
NULL
,
...
@@ -37,14 +37,14 @@ Create table Assistant (
...
@@ -37,14 +37,14 @@ Create table Assistant (
);
);
Create
table
Espece
(
Create
table
Espece
(
ID_espece
INT
NOT
NULL
primary
key
,
ID_espece
INT
NOT
NULL
PRIMARY
KEY
,
Nom
varchar
(
30
)
NOT
NULL
,
Nom
varchar
(
30
)
NOT
NULL
,
Classe
INT
,
Classe
INT
,
foreign
key
(
Classe
)
references
Classe_animal
(
ID_classes
)
foreign
key
(
Classe
)
references
Classe_animal
(
ID_classes
)
);
);
Create
table
Animal
(
Create
table
Animal
(
ID_Animal
INT
NOT
NULL
primary
key
,
ID_Animal
INT
NOT
NULL
PRIMARY
KEY
,
Nom
varchar
(
30
)
NOT
NULL
,
Nom
varchar
(
30
)
NOT
NULL
,
Poids
FLOAT
NOT
NULL
,
Poids
FLOAT
NOT
NULL
,
Taille
FLOAT
NOT
NULL
,
Taille
FLOAT
NOT
NULL
,
...
@@ -58,14 +58,14 @@ Create table Animal (
...
@@ -58,14 +58,14 @@ Create table Animal (
);
);
Create
table
Effets_secondaires
(
Create
table
Effets_secondaires
(
ID_effet_secondaire
INT
NOT
NULL
primary
key
,
ID_effet_secondaire
INT
NOT
NULL
PRIMARY
KEY
,
Effets
varchar
(
100
)
NOT
NULL
Effets
varchar
(
100
)
NOT
NULL
);
);
Create
table
Medicament
(
Create
table
Medicament
(
ID_Medicament
INT
NOT
NULL
primary
key
,
ID_Medicament
INT
NOT
NULL
PRIMARY
KEY
,
Nom_de_molecule
varchar
(
30
)
NOT
NULL
,
Nom_de_molecule
varchar
(
30
)
NOT
NULL
,
Description
varchar
(
100
)
NOT
NULL
,
Description
varchar
(
100
)
NOT
NULL
);
);
Create
table
Medicament_Effet
(
Create
table
Medicament_Effet
(
...
@@ -79,19 +79,19 @@ Create table Med_correspond_Ani (
...
@@ -79,19 +79,19 @@ 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
),
ID_espece
INT
,
ID_espece
INT
,
foreign
key
(
ID_Espece
)
references
Espece
(
ID_espece
)
,
foreign
key
(
ID_Espece
)
references
Espece
(
ID_espece
)
);
);
Create
table
Traitement
(
Create
table
Traitement
(
ID_Traitement
INT
NOT
NULL
primary
key
,
ID_Traitement
INT
NOT
NULL
PRIMARY
KEY
,
Debut
T
ime
NOT
NULL
,
Debut
T
IME
NOT
NULL
,
Duree
T
ime
NOT
NULL
,
Duree
T
IME
NOT
NULL
,
Nom
varchar
(
30
)
NOT
NULL
,
Nom
varchar
(
30
)
NOT
NULL
,
ID_Animal
INT
,
ID_Animal
INT
,
foreign
key
(
ID_Animal
)
references
Animal
(
ID_Animal
),
foreign
key
(
ID_Animal
)
references
Animal
(
ID_Animal
),
Veterinaire
INT
,
Veterinaire
INT
,
foreign
key
(
Veterinaire
)
references
Veterinaire
,
foreign
key
(
Veterinaire
)
references
Veterinaire
,
CHECK
(
Duree
>
0
)
CHECK
(
Duree
<
>
'00:00:00'
)
);
);
Create
table
Traitement_Medicament
(
Create
table
Traitement_Medicament
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment