-- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Client : localhost:8889 -- Généré le : Mer 07 Janvier 2015 à 14:04 -- Version du serveur : 5.5.38 -- Version de PHP : 5.6.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Base de données : `Projet` -- -- -------------------------------------------------------- -- -- Structure de la table `client` -- CREATE TABLE `client` ( `id` int(12) NOT NULL, `NSS` int(11) NOT NULL, `nom` text NOT NULL, `prenom` text NOT NULL, `birthday` varchar(255) NOT NULL, `profession` text NOT NULL, `tel` int(10) unsigned zerofill NOT NULL, `situation` int(2) NOT NULL, `solde` int(11) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; -- -- Contenu de la table `client` -- INSERT INTO `client` (`id`, `NSS`, `nom`, `prenom`, `birthday`, `profession`, `tel`, `situation`, `solde`) VALUES (1, 12345, 'Belkhir', 'Akli', '14/01/1954', 'Trolleur', 0248374928, 1, 299850), (2, 54321, 'Malakuss', 'Cedric', '14/11/1984', 'Equipier polivalent de restauraration', 0245392813, 2, 400), (6, 93270, 'Zimoune', 'Alistarle', '12/04/1990', 'Developpeur PHP Professionnel', 0123456789, 2, 0), (7, 1234567890, 'Test', 'Test', '12/12/12', 'Test', 1234567890, 1, 0); -- -------------------------------------------------------- -- -- Structure de la table `compte` -- CREATE TABLE `compte` ( `id` int(10) NOT NULL, `login` varchar(20) NOT NULL, `password` varchar(255) NOT NULL, `type` int(2) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; -- -- Contenu de la table `compte` -- INSERT INTO `compte` (`id`, `login`, `password`, `type`) VALUES (2, 'Akli', '098f6bcd4621d373cade4e832627b4f6', 3), (5, 'kaaris2', '15d7386be45b702477ff6b8221630575', 1), (7, 'Medecin', '098f6bcd4621d373cade4e832627b4f6', 2); -- -------------------------------------------------------- -- -- Structure de la table `conges` -- CREATE TABLE `conges` ( `id` int(11) NOT NULL, `id_medecin` int(11) NOT NULL, `date` datetime NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; -- -- Contenu de la table `conges` -- INSERT INTO `conges` (`id`, `id_medecin`, `date`) VALUES (1, 3, '2014-12-30 10:00:00'), (2, 3, '2014-12-30 12:00:00'), (3, 3, '2014-12-31 08:00:00'), (5, 1, '2015-03-16 10:00:00'), (6, 1, '2015-03-12 10:00:00'); -- -------------------------------------------------------- -- -- Structure de la table `consultation` -- CREATE TABLE `consultation` ( `id` int(11) NOT NULL, `id_operation` int(11) NOT NULL, `id_medecin` int(11) NOT NULL, `nss_client` int(11) NOT NULL, `date` datetime NOT NULL, `compte_rendu` text NOT NULL, `suivi` text NOT NULL, `paye` int(1) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1; -- -- Contenu de la table `consultation` -- INSERT INTO `consultation` (`id`, `id_operation`, `id_medecin`, `nss_client`, `date`, `compte_rendu`, `suivi`, `paye`) VALUES (1, 1, 3, 12345, '2014-12-31 14:00:00', 'Il est trop tard pour shahed', 'Test', 0), (2, 1, 1, 12345, '1990-04-04 11:00:00', 'test', '', 0), (3, 4, 3, 12345, '2048-12-23 10:00:00', '', '', 1), (4, 1, 1, 54321, '2032-11-18 09:00:00', 'k,lk,kl,', 'bla', 1), (5, 1, 1, 54321, '2015-03-16 12:00:00', '', '', 0), (6, 1, 1, 12345, '2015-02-11 12:00:00', '', '', 0), (7, 1, 1, 12345, '2015-02-11 12:00:00', '', '', 0), (8, 1, 1, 12345, '2015-02-11 12:00:00', '', '', 0); -- -------------------------------------------------------- -- -- Structure de la table `histo_compte` -- CREATE TABLE `histo_compte` ( `id` int(11) NOT NULL, `id_client` int(11) NOT NULL, `modif` int(11) NOT NULL, `date` datetime NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1; -- -- Contenu de la table `histo_compte` -- INSERT INTO `histo_compte` (`id`, `id_client`, `modif`, `date`) VALUES (13, 1, 1000000, '2015-01-05 08:00:00'), (14, 1, -150, '2015-01-05 09:00:00'), (15, 1, 300000, '2015-01-05 10:00:00'), (16, 1, -1000000, '2015-01-05 11:00:00'), (17, 2, 500, '2015-01-07 03:46:26'), (18, 2, -100, '2015-01-07 03:46:37'); -- -------------------------------------------------------- -- -- Structure de la table `medecin` -- CREATE TABLE `medecin` ( `id` int(11) NOT NULL, `id_compte` int(11) NOT NULL, `nom` varchar(255) NOT NULL, `specialite` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Contenu de la table `medecin` -- INSERT INTO `medecin` (`id`, `id_compte`, `nom`, `specialite`) VALUES (1, 7, 'B2OBA', 'Truand'), (2, 0, 'K2A', 'Test'), (3, 0, 'Gradur', 'Street'); -- -------------------------------------------------------- -- -- Structure de la table `operation` -- CREATE TABLE `operation` ( `id` int(11) NOT NULL, `nom` varchar(255) NOT NULL, `prix` int(11) NOT NULL, `pieces` text NOT NULL, `consigne` text NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Contenu de la table `operation` -- INSERT INTO `operation` (`id`, `nom`, `prix`, `pieces`, `consigne`) VALUES (1, 'Niquer le rap-game', 100, 'Pe-pom', 'Sortez les pe-pom'), (4, 'Sortez les peu-pom', 200, 'Kalash', 'Kalash a la kadafi'); -- -- Index pour les tables exportées -- -- -- Index pour la table `client` -- ALTER TABLE `client` ADD PRIMARY KEY (`id`); -- -- Index pour la table `compte` -- ALTER TABLE `compte` ADD PRIMARY KEY (`id`); -- -- Index pour la table `conges` -- ALTER TABLE `conges` ADD PRIMARY KEY (`id`); -- -- Index pour la table `consultation` -- ALTER TABLE `consultation` ADD PRIMARY KEY (`id`); -- -- Index pour la table `histo_compte` -- ALTER TABLE `histo_compte` ADD PRIMARY KEY (`id`); -- -- Index pour la table `medecin` -- ALTER TABLE `medecin` ADD PRIMARY KEY (`id`); -- -- Index pour la table `operation` -- ALTER TABLE `operation` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `client` -- ALTER TABLE `client` MODIFY `id` int(12) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8; -- -- AUTO_INCREMENT pour la table `compte` -- ALTER TABLE `compte` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8; -- -- AUTO_INCREMENT pour la table `conges` -- ALTER TABLE `conges` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7; -- -- AUTO_INCREMENT pour la table `consultation` -- ALTER TABLE `consultation` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9; -- -- AUTO_INCREMENT pour la table `histo_compte` -- ALTER TABLE `histo_compte` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19; -- -- AUTO_INCREMENT pour la table `medecin` -- ALTER TABLE `medecin` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4; -- -- AUTO_INCREMENT pour la table `operation` -- ALTER TABLE `operation` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;