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

Update create_table.sql

parent ad52bbd3
Create table Client (
ID_Client INT NOT NULL,
ID_Client INT UNIQUE NOT NULL,
Nom varchar(30) NOT NULL,
Prenom varchar(30) NOT NULL,
Date_de_naissance date NOT NULL,
......@@ -10,12 +10,12 @@ Create table Client (
);
Create table Classe_animal (
ID_classes INT NOT NULL PRIMARY KEY,
ID_classes INT UNIQUE NOT NULL PRIMARY KEY,
Nom varchar(30) NOT NULL
);
Create table Veterinaire (
ID_personnel INT NOT NULL PRIMARY KEY,
ID_personnel INT UNIQUE NOT NULL PRIMARY KEY,
Nom varchar(30) NOT NULL,
prenom varchar(30) NOT NULL,
Date_de_naissance date NOT NULL,
......@@ -26,7 +26,7 @@ Create table Veterinaire (
);
Create table Assistant (
ID_personnel INT NOT NULL PRIMARY KEY,
ID_personnel INT UNIQUE NOT NULL PRIMARY KEY,
Nom varchar(30) NOT NULL,
prenom varchar(30) NOT NULL,
Date_de_naissance date NOT NULL,
......@@ -37,14 +37,14 @@ Create table Assistant (
);
Create table Espece (
ID_espece INT NOT NULL PRIMARY KEY,
ID_espece INT UNIQUE NOT NULL PRIMARY KEY,
Nom varchar(30) NOT NULL,
Classe INT,
foreign key(Classe) references Classe_animal(ID_classes)
);
Create table Animal (
ID_Animal INT NOT NULL PRIMARY KEY,
ID_Animal INT UNIQUE NOT NULL PRIMARY KEY,
Nom varchar(30) NOT NULL,
Poids FLOAT NOT NULL,
Taille FLOAT NOT NULL,
......@@ -58,12 +58,12 @@ Create table Animal (
);
Create table Effets_secondaires (
ID_effet_secondaire INT NOT NULL PRIMARY KEY,
ID_effet_secondaire INT UNIQUE NOT NULL PRIMARY KEY,
Effets varchar(100) NOT NULL
);
Create table Medicament (
ID_Medicament INT NOT NULL PRIMARY KEY,
ID_Medicament INT UNIQUE NOT NULL PRIMARY KEY,
Nom_de_molecule varchar(30) NOT NULL,
Description varchar(100) NOT NULL
);
......@@ -85,7 +85,7 @@ Create table Med_correspond_Ani (
);
Create table Traitement (
ID_Traitement INT NOT NULL PRIMARY KEY,
ID_Traitement INT UNIQUE NOT NULL PRIMARY KEY,
Debut TIME NOT NULL,
Duree TIME NOT NULL,
Nom varchar(30) NOT NULL,
......
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