Commit c238a005 authored by Evenson Jeunesse's avatar Evenson Jeunesse

Update JSON_CREATE.sql

parent db13905a
CREATE TABLE Animal (
id INTEGER PRIMARY KEY,
nom VARCHAR (50) NOT NULL,
dernierPoids INTEGER NOT NULL,
derniereTaille INTEGER NOT NULL,
dateNaissance INTEGER NOT NULL,
espece VARCHAR(50) NOT NULL,
traitements JSON,
FOREIGN KEY (espece) REFERENCES Especes(nom),
CHECK (dernierPoids > 0),
CHECK (derniereTaille > 0)
);
CREATE TABLE Classes(
nom VARCHAR(50),
PRIMARY KEY (nom)
......@@ -26,6 +13,21 @@ FOREIGN KEY (classe) REFERENCES Classes(nom)
CREATE TABLE Animal (
id INTEGER PRIMARY KEY,
nom VARCHAR (50) NOT NULL,
dernierPoids INTEGER NOT NULL,
derniereTaille INTEGER NOT NULL,
dateNaissance INTEGER NOT NULL,
espece VARCHAR(50) NOT NULL,
traitements JSON,
FOREIGN KEY (espece) REFERENCES Especes(nom),
CHECK (dernierPoids > 0),
CHECK (derniereTaille > 0)
);
CREATE TABLE Clients(
id INTEGER,
telephone INTEGER NOT NULL,
......
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