(5,'Nouvel','Johan',NULL,NULL,NULL,'Suisse','johanetpirlouit@email.com',NULL),(
(7,'Antoine','Maximilien','Rue Moineau, 123','4580','Trocoul','Belgique','max.antoin
Paolo','Hector',NULL,NULL,NULL,'Suisse','hectordipao@email.com',NULL),
(9,'Corduro','Anaelle',NULL,NULL,NULL,NULL,'ana.corduro@email.com',NULL),
(10,'Faluche','Eline','Avenue circulaire, 7','45870','Garduche','France','elinefaluc
85','1514','Plasse','Suisse','cpenni@email.com',NULL),(12,'Broussaille','Virginie'
(13,'Durant','Hannah','Rue des Pendus, 66','1514','Plasse','Suisse','hhdurant@email.
(14,'Delfour','Elodie','Rue de Flore,
1','3250','Belville','Belgique','e.delfour@email.com',NULL),(15,'Kestau','Joel'
UNLOCK TABLES;
CREATE TABLE Espece (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
nom_courant varchar(40) NOT NULL,
nom_latin varchar(40) NOT NULL,
description text,
prix decimal(7,2) unsigned DEFAULT NULL,
PRIMARY KEY (id),
UNIQUE KEY nom_latin (nom_latin)
) ENGINE=InnoDB AUTO_INCREMENT=8;
LOCK TABLES Espece WRITE;
INSERT INTO Espece VALUES (1,'Chien','Canis canis','Bestiole à quatre pattes qui aim
silvestris','Bestiole à quatre pattes qui saute très haut et grimpe aux arbres'
(3,'Tortue d''Hermann','Testudo hermanni','Bestiole avec une carapace très dure'
(4,'Perroquet amazone','Alipiopsitta xanthops','Joli oiseau parleur vert et jaune'
moustaches et une longue queue sans poils',10.00),(6,'Perruche terrestre','Pezoporus
UNLOCK TABLES;
CREATE TABLE Race (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
nom varchar(40) NOT NULL,
espece_id smallint(6) unsigned NOT NULL,
description text,
prix decimal(7,2) unsigned DEFAULT NULL,
date_insertion datetime DEFAULT NULL,
utilisateur_insertion varchar(20) DEFAULT NULL,
date_modification datetime DEFAULT NULL,
utilisateur_modification varchar(20) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=11;
LOCK TABLES Race WRITE;
INSERT INTO Race VALUES (1,'Berger allemand',1,'Chien sportif et élégant au pelage d
00:53:36','Test','2012-05-21 00:53:36','Test'),(2,'Berger blanc suisse',1,'Petit chi
pelage tricolore ou bicolore.',935.00,'2012-05-21 00:53:36','Test','2012-05-21 00:53
(3,'Singapura',2,'Chat de petite taille aux grands yeux en amandes.',985.00,'2012-05
(4,'Bleu russe',2,'Chat aux yeux verts et à la robe épaisse et argentée.',835.00
de grande taille, à poils mi-longs.',735.00,'2012-05-21 00:53:36','Test','2012-05-27
00:53:36','Test','2012-05-21 00:53:36','Test'),
(8,'Nebelung',2,'Chat bleu russe, mais avec des poils longs...',985.00,'2012-05-21 0
(9,'Rottweiller',1,'Chien d''apparence solide, bien musclé, à la robe noire avec des
00:54:13','sdz@localhost'),(10,'Yorkshire terrier',1,'Chien de petite taille au pela
00:58:25','sdz@localhost','2012-05-22 00:58:25','sdz@localhost');
UNLOCK TABLES;
CREATE TABLE Animal (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
sexe char(1) DEFAULT NULL,
date_naissance datetime NOT NULL,
nom varchar(30) DEFAULT NULL,
commentaires text,
espece_id smallint(6) unsigned NOT NULL,
race_id smallint(6) unsigned DEFAULT NULL,
mere_id smallint(6) unsigned DEFAULT NULL,
pere_id smallint(6) unsigned DEFAULT NULL,
disponible tinyint(1) DEFAULT '1',
Partie 7 : Gestion des utilisateurs et configuration du serveur
375/414
www.openclassrooms.com
(7,'Antoine','Maximilien','Rue Moineau, 123','4580','Trocoul','Belgique','max.antoin
Paolo','Hector',NULL,NULL,NULL,'Suisse','hectordipao@email.com',NULL),
(9,'Corduro','Anaelle',NULL,NULL,NULL,NULL,'ana.corduro@email.com',NULL),
(10,'Faluche','Eline','Avenue circulaire, 7','45870','Garduche','France','elinefaluc
85','1514','Plasse','Suisse','cpenni@email.com',NULL),(12,'Broussaille','Virginie'
(13,'Durant','Hannah','Rue des Pendus, 66','1514','Plasse','Suisse','hhdurant@email.
(14,'Delfour','Elodie','Rue de Flore,
1','3250','Belville','Belgique','e.delfour@email.com',NULL),(15,'Kestau','Joel'
UNLOCK TABLES;
CREATE TABLE Espece (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
nom_courant varchar(40) NOT NULL,
nom_latin varchar(40) NOT NULL,
description text,
prix decimal(7,2) unsigned DEFAULT NULL,
PRIMARY KEY (id),
UNIQUE KEY nom_latin (nom_latin)
) ENGINE=InnoDB AUTO_INCREMENT=8;
LOCK TABLES Espece WRITE;
INSERT INTO Espece VALUES (1,'Chien','Canis canis','Bestiole à quatre pattes qui aim
silvestris','Bestiole à quatre pattes qui saute très haut et grimpe aux arbres'
(3,'Tortue d''Hermann','Testudo hermanni','Bestiole avec une carapace très dure'
(4,'Perroquet amazone','Alipiopsitta xanthops','Joli oiseau parleur vert et jaune'
moustaches et une longue queue sans poils',10.00),(6,'Perruche terrestre','Pezoporus
UNLOCK TABLES;
CREATE TABLE Race (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
nom varchar(40) NOT NULL,
espece_id smallint(6) unsigned NOT NULL,
description text,
prix decimal(7,2) unsigned DEFAULT NULL,
date_insertion datetime DEFAULT NULL,
utilisateur_insertion varchar(20) DEFAULT NULL,
date_modification datetime DEFAULT NULL,
utilisateur_modification varchar(20) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=11;
LOCK TABLES Race WRITE;
INSERT INTO Race VALUES (1,'Berger allemand',1,'Chien sportif et élégant au pelage d
00:53:36','Test','2012-05-21 00:53:36','Test'),(2,'Berger blanc suisse',1,'Petit chi
pelage tricolore ou bicolore.',935.00,'2012-05-21 00:53:36','Test','2012-05-21 00:53
(3,'Singapura',2,'Chat de petite taille aux grands yeux en amandes.',985.00,'2012-05
(4,'Bleu russe',2,'Chat aux yeux verts et à la robe épaisse et argentée.',835.00
de grande taille, à poils mi-longs.',735.00,'2012-05-21 00:53:36','Test','2012-05-27
00:53:36','Test','2012-05-21 00:53:36','Test'),
(8,'Nebelung',2,'Chat bleu russe, mais avec des poils longs...',985.00,'2012-05-21 0
(9,'Rottweiller',1,'Chien d''apparence solide, bien musclé, à la robe noire avec des
00:54:13','sdz@localhost'),(10,'Yorkshire terrier',1,'Chien de petite taille au pela
00:58:25','sdz@localhost','2012-05-22 00:58:25','sdz@localhost');
UNLOCK TABLES;
CREATE TABLE Animal (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
sexe char(1) DEFAULT NULL,
date_naissance datetime NOT NULL,
nom varchar(30) DEFAULT NULL,
commentaires text,
espece_id smallint(6) unsigned NOT NULL,
race_id smallint(6) unsigned DEFAULT NULL,
mere_id smallint(6) unsigned DEFAULT NULL,
pere_id smallint(6) unsigned DEFAULT NULL,
disponible tinyint(1) DEFAULT '1',
Partie 7 : Gestion des utilisateurs et configuration du serveur
375/414
www.openclassrooms.com
