-- phpMyAdmin SQL Dump -- version 2.8.0.3-Debian-1 -- http://www.phpmyadmin.net -- -- Serveur: localhost -- Généré le : Jeudi 10 Août 2006 à 13:08 -- Version du serveur: 5.0.22 -- Version de PHP: 5.1.2 -- -- Base de données: `kalosori` -- -- -------------------------------------------------------- -- -- Structure de la table `Actions` -- DROP TABLE IF EXISTS `Actions`; CREATE TABLE IF NOT EXISTS `Actions` ( `id` int(11) NOT NULL auto_increment, `id_engagements` int(11) NOT NULL, `action` text collate utf8_unicode_ci NOT NULL, `id_utilisateurs` int(11) NOT NULL, `id_offices` int(11) NOT NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Contenu de la table `Actions` -- -- -------------------------------------------------------- -- -- Structure de la table `Categories` -- DROP TABLE IF EXISTS `Categories`; CREATE TABLE IF NOT EXISTS `Categories` ( `id` int(11) NOT NULL auto_increment, `nom` varchar(255) collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Contenu de la table `Categories` -- -- -------------------------------------------------------- -- -- Structure de la table `Choix` -- DROP TABLE IF EXISTS `Choix`; CREATE TABLE IF NOT EXISTS `Choix` ( `id` int(11) NOT NULL auto_increment, `choix` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Contenu de la table `Choix` -- INSERT INTO `Choix` (`id`, `choix`) VALUES (1, 'oui'), (2, 'non'), (3, 'neutre'); -- -------------------------------------------------------- -- -- Structure de la table `Engagements` -- DROP TABLE IF EXISTS `Engagements`; CREATE TABLE IF NOT EXISTS `Engagements` ( `id` int(11) NOT NULL auto_increment, `Libelle` text collate utf8_unicode_ci NOT NULL, `ordre` int(11) NULL, `Aide` text collate utf8_unicode_ci NOT NULL, `id_territoires` int(11) NOT NULL, `id_categories` int(11) NOT NULL, `id_importances` int(11) NOT NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`), FULLTEXT KEY `Libelle` (`Libelle`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Contenu de la table `Engagements` -- -- -------------------------------------------------------- -- -- Structure de la table `Formulaires` -- DROP TABLE IF EXISTS `Formulaires`; CREATE TABLE IF NOT EXISTS `Formulaires` ( `id` int(11) NOT NULL auto_increment, `id_offices` int(11) NOT NULL, `id_utilisateurs` int(11) NOT NULL, `id_status` int(11) NOT NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Contenu de la table `Formulaires` -- -- -------------------------------------------------------- -- -- Structure de la table `Groupes` -- DROP TABLE IF EXISTS `Groupes`; CREATE TABLE IF NOT EXISTS `Groupes` ( `id` int(11) NOT NULL auto_increment, `nom` varchar(255) collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Contenu de la table `Groupes` -- -- -------------------------------------------------------- -- -- Structure de la table `Importances` -- DROP TABLE IF EXISTS `Importances`; CREATE TABLE IF NOT EXISTS `Importances` ( `id` int(11) NOT NULL auto_increment, `nom` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Contenu de la table `Importances` -- INSERT INTO `Importances` (`id`, `nom`) VALUES (1, 'prioritaire'), (2, 'obligatoire'), (3, 'facultative'); -- -------------------------------------------------------- -- -- Structure de la table `Offices` -- DROP TABLE IF EXISTS `Offices`; CREATE TABLE IF NOT EXISTS `Offices` ( `id` int(11) NOT NULL auto_increment, `nom` varchar(255) collate utf8_unicode_ci NOT NULL, `id_territoires` int(11) NOT NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Contenu de la table `Offices` -- -- -------------------------------------------------------- -- -- Structure de la table `Regroupements` -- DROP TABLE IF EXISTS `Regroupements`; CREATE TABLE IF NOT EXISTS `Regroupements` ( `id` int(11) NOT NULL auto_increment, `id_offices` int(11) NOT NULL, `id_groupes` int(11) NOT NULL, `id_utilisateurs` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Contenu de la table `Regroupements` -- -- -------------------------------------------------------- -- -- Structure de la table `Reponses` -- DROP TABLE IF EXISTS `Reponses`; CREATE TABLE IF NOT EXISTS `Reponses` ( `id` int(11) NOT NULL auto_increment, `id_engagements` int(11) NOT NULL, `id_formulaires` int(11) NOT NULL, `id_reponses` int(11) NOT NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Contenu de la table `Reponses` -- -- -------------------------------------------------------- -- -- Structure de la table `Scores` -- DROP TABLE IF EXISTS `Scores`; CREATE TABLE IF NOT EXISTS `Scores` ( `id` int(11) NOT NULL auto_increment, `id_formulaires` int(11) NOT NULL, `score` varchar(40) collate utf8_unicode_ci NOT NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Contenu de la table `Scores` -- -- -------------------------------------------------------- -- -- Structure de la table `Status` -- DROP TABLE IF EXISTS `Status`; CREATE TABLE IF NOT EXISTS `Status` ( `id` int(11) NOT NULL auto_increment, `nom` varchar(40) character set utf8 collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Contenu de la table `Status` -- INSERT INTO `Status` (`id`, `nom`) VALUES (1, 'Administrateur label'), (2, 'Administrateur territorial'), (3, 'Animateur qualité'), (4, 'Office'); -- -------------------------------------------------------- -- -- Structure de la table `Territoires` -- DROP TABLE IF EXISTS `Territoires`; CREATE TABLE IF NOT EXISTS `Territoires` ( `id` int(11) NOT NULL auto_increment, `nom` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Contenu de la table `Territoires` -- INSERT INTO `Territoires` (`id`, `nom`) VALUES (1, 'Label National'); -- -------------------------------------------------------- -- -- Structure de la table `Utilisateurs` -- DROP TABLE IF EXISTS `Utilisateurs`; CREATE TABLE IF NOT EXISTS `Utilisateurs` ( `id` int(11) NOT NULL auto_increment, `nom` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL, `email` varchar(255) NOT NULL, `login` varchar(40) character set utf8 collate utf8_unicode_ci NOT NULL, `password` varchar(40) character set utf8 collate utf8_unicode_ci NOT NULL, `id_status` int(11) NOT NULL, `id_territoires` int(11) NOT NULL, `id_offices` int(11) default NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Contenu de la table `Utilisateurs` -- INSERT INTO `Utilisateurs` (`id`, `nom`, `login`, `password`, `id_status`, `id_territoires`, `date`) VALUES (1, 'Administrateur', 'admin', 'password', 1, 1, '2006-07-27 08:49:42'); -- -------------------------------------------------------- -- -- Structure de la table `Messages` -- CREATE TABLE IF NOT EXISTS `Messages` ( `id` int(11) NOT NULL auto_increment, `id_offices` int(11) NOT NULL COMMENT 'Destinataire', `id_utilisateurs` int(11) NOT NULL COMMENT 'Emmeteur', `importance` int(2) NOT NULL, `message` text collate utf8_unicode_ci NOT NULL, `categorie` varchar(30) collate utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Structure de la table `Referentiels` -- CREATE TABLE `referentiels` ( `id` int(11) NOT NULL auto_increment, `nom` varchar(255) collate utf8_bin NOT NULL, `id_territoires` int(11) NOT NULL, `obligatoire` tinyint(1) NOT NULL default '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;