Replace bd.sql

parent 72f493fd
......@@ -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)
);
Markdown is supported
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