Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaetan Carabetta
projet_nf17_p19_tdg1_groupe2
Commits
5423f05d
Commit
5423f05d
authored
Jun 19, 2019
by
Osvaldo Valdivia Salas
Browse files
Replace bd.sql
parent
72f493fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
application/BD/bd.sql
View file @
5423f05d
...
...
@@ -86,12 +86,12 @@ CREATE TABLE Espece_Med(
);
CREATE
TABLE
Posologie
(
idAnimal
INT
NOT
NULL
REFERENCES
Animal
(
idAnimal
),
traitement
INT
NOT
NULL
REFERENCES
Traitement
(
idTraitement
),
nomMolec
VARCHAR
(
30
)
NOT
NULL
REFERENCES
Medicament
(
nomMolec
),
debut
DATE
NOT
NULL
,
duree
INT
NOT
NULL
,
nbJourna
INT
NOT
NULL
,
PRIMARY
KEY
(
idAnimal
,
nomMolec
,
debut
),
PRIMARY
KEY
(
traitement
,
nomMolec
,
debut
),
CHECK
(
duree
>
0
),
CHECK
(
nbJourna
>
0
)
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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