1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330
| -- phpMyAdmin SQL Dump
-- version 2.8.0.3
-- http://www.phpmyadmin.net
--
-- Serveur: localhost
-- Généré le : Lundi 12 Juin 2006 à 10:51
-- Version du serveur: 5.0.21
-- Version de PHP: 5.1.4
--
-- Base de données: `suivi_activite`
--
-- --------------------------------------------------------
--
-- Structure de la table `t_application`
--
CREATE TABLE `t_application` (
`id_application` int(11) NOT NULL auto_increment,
`lib_application` varchar(20) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id_application`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Contenu de la table `t_application`
--
INSERT INTO `t_application` VALUES (1, 'Eureka');
INSERT INTO `t_application` VALUES (2, 'Mercure');
INSERT INTO `t_application` VALUES (3, 'RCE');
-- --------------------------------------------------------
--
-- Structure de la table `t_criticite`
--
CREATE TABLE `t_criticite` (
`id_criticite` int(11) NOT NULL auto_increment,
`lib_criticite` varchar(20) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id_criticite`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Contenu de la table `t_criticite`
--
INSERT INTO `t_criticite` VALUES (1, 'Mineure');
INSERT INTO `t_criticite` VALUES (2, 'Majeure');
INSERT INTO `t_criticite` VALUES (3, 'Majeure Urgente');
-- --------------------------------------------------------
--
-- Structure de la table `t_domaine`
--
CREATE TABLE `t_domaine` (
`id_domaine` int(4) NOT NULL auto_increment,
`lib_domaine` varchar(20) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id_domaine`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Contenu de la table `t_domaine`
--
INSERT INTO `t_domaine` VALUES (1, 'Réf. Client');
-- --------------------------------------------------------
--
-- Structure de la table `t_etat`
--
CREATE TABLE `t_etat` (
`id_etat` int(11) NOT NULL auto_increment,
`lib_etat` varchar(20) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id_etat`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Contenu de la table `t_etat`
--
INSERT INTO `t_etat` VALUES (1, 'Affectée');
INSERT INTO `t_etat` VALUES (2, 'Prise En Compte');
INSERT INTO `t_etat` VALUES (3, 'Résolue');
INSERT INTO `t_etat` VALUES (4, 'Clôturée');
INSERT INTO `t_etat` VALUES (5, 'Livrée');
-- --------------------------------------------------------
--
-- Structure de la table `t_groupe`
--
CREATE TABLE `t_groupe` (
`id_groupe` tinyint(4) NOT NULL auto_increment,
`lib_groupe` varchar(20) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id_groupe`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Contenu de la table `t_groupe`
--
INSERT INTO `t_groupe` VALUES (1, 'FT');
INSERT INTO `t_groupe` VALUES (2, 'FAS');
INSERT INTO `t_groupe` VALUES (3, 'TMA');
-- --------------------------------------------------------
--
-- Structure de la table `t_intervenant`
--
CREATE TABLE `t_intervenant` (
`id_intervenant` varchar(8) character set latin1 collate latin1_general_cs NOT NULL,
`prenom_nom` varchar(30) character set latin1 collate latin1_general_cs NOT NULL,
`id_groupe` tinyint(4) NOT NULL,
`actif` tinyint(4) NOT NULL default '1',
`id_domaine` int(4) NOT NULL,
PRIMARY KEY (`id_intervenant`),
KEY `id_domaine` (`id_domaine`),
KEY `id_groupe` (`id_groupe`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Contenu de la table `t_intervenant`
--
INSERT INTO `t_intervenant` VALUES ('Adnane', 'Adnane HAMRI', 1, 1, 1);
INSERT INTO `t_intervenant` VALUES ('ajah8232', 'Adnane HAMRI', 1, 1, 1);
-- --------------------------------------------------------
--
-- Structure de la table `t_orig_dem`
--
CREATE TABLE `t_orig_dem` (
`id_orig_dem` int(11) NOT NULL auto_increment,
`lib_orig_dem` varchar(20) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id_orig_dem`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Contenu de la table `t_orig_dem`
--
INSERT INTO `t_orig_dem` VALUES (1, 'MOA');
INSERT INTO `t_orig_dem` VALUES (2, 'MOE');
INSERT INTO `t_orig_dem` VALUES (3, 'Interne');
INSERT INTO `t_orig_dem` VALUES (4, 'Autre');
INSERT INTO `t_orig_dem` VALUES (5, 'Client');
-- --------------------------------------------------------
--
-- Structure de la table `t_os`
--
CREATE TABLE `t_os` (
`id` int(11) NOT NULL auto_increment,
`date_aff` datetime NOT NULL,
`lib_dem` text character set latin1 collate latin1_general_cs,
`date_sou` datetime default NULL,
`date_liv` datetime default NULL,
`tps_est` decimal(10,2) NOT NULL,
`tps_eff` decimal(10,2) NOT NULL,
`date_clo` datetime default NULL,
`commentaire` text character set latin1 collate latin1_general_cs,
`id_application` int(11) NOT NULL,
`id_orig_dem` int(11) NOT NULL,
`id_type_dem` int(11) NOT NULL,
`id_type_peri` int(11) NOT NULL,
`id_etat` int(11) NOT NULL,
`id_intervenant` varchar(8) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id`),
KEY `id_application` (`id_application`),
KEY `id_orig_dem` (`id_orig_dem`),
KEY `id_type_dem` (`id_type_dem`),
KEY `id_type_peri` (`id_type_peri`),
KEY `id_etat` (`id_etat`),
KEY `id_intervenant` (`id_intervenant`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Contenu de la table `t_os`
--
-- --------------------------------------------------------
--
-- Structure de la table `t_soutien`
--
CREATE TABLE `t_soutien` (
`id` int(10) NOT NULL auto_increment,
`date_aff` datetime NOT NULL,
`lib_dem` text character set latin1 collate latin1_general_cs,
`date_pec` datetime default NULL,
`date_res` datetime default NULL,
`tps_eff` decimal(10,2) NOT NULL,
`date_clo` datetime default NULL,
`dem_oga` tinyint(1) NOT NULL,
`ref_cli` tinyint(1) NOT NULL,
`commentaire` text character set latin1 collate latin1_general_cs,
`id_criticite` int(11) NOT NULL,
`id_orig_dem` int(11) NOT NULL,
`id_intervenant` varchar(8) character set latin1 collate latin1_general_cs NOT NULL,
`id_application` int(11) NOT NULL,
`id_type_peri` int(11) NOT NULL,
`id_tache` varchar(11) character set latin1 collate latin1_general_cs NOT NULL,
`id_etat` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `id_application` (`id_application`),
KEY `id_criticite` (`id_criticite`),
KEY `id_orig_dem` (`id_orig_dem`),
KEY `id_tache` (`id_tache`),
KEY `id_type_peri` (`id_type_peri`),
KEY `id_etat` (`id_etat`),
KEY `id_intervenant` (`id_intervenant`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Contenu de la table `t_soutien`
--
INSERT INTO `t_soutien` VALUES (1, '2006-06-20 21:50:13', 'tgggg', NULL, NULL, '0.25', NULL, 0, 0, 'gggg', 1, 1, 'Adnane', 1, 1, '2.2.1', 1);
-- --------------------------------------------------------
--
-- Structure de la table `t_tache`
--
CREATE TABLE `t_tache` (
`id_tache` varchar(11) character set latin1 collate latin1_general_cs NOT NULL,
`lib_tache` varchar(70) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id_tache`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Contenu de la table `t_tache`
--
INSERT INTO `t_tache` VALUES ('2.2.1', 'Gestion et Traitement des incidents');
INSERT INTO `t_tache` VALUES ('2.2.2', 'Support Technique, Caractérisation de Problème');
INSERT INTO `t_tache` VALUES ('2.3', 'Gestion et Recette des Anomalies');
INSERT INTO `t_tache` VALUES ('2.4.1', 'Proposition, Exigence, Maintenabilité Par Version');
INSERT INTO `t_tache` VALUES ('2.4.2', 'Participation aux Opérations de Transfert d''une version');
-- --------------------------------------------------------
--
-- Structure de la table `t_type_dem`
--
CREATE TABLE `t_type_dem` (
`id_type_dem` int(11) NOT NULL auto_increment,
`lib_type_dem` varchar(30) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id_type_dem`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Contenu de la table `t_type_dem`
--
INSERT INTO `t_type_dem` VALUES (1, 'Requête');
INSERT INTO `t_type_dem` VALUES (2, 'Travaux');
INSERT INTO `t_type_dem` VALUES (3, 'Autre... (Précisez)');
-- --------------------------------------------------------
--
-- Structure de la table `t_type_peri`
--
CREATE TABLE `t_type_peri` (
`id_type_peri` int(11) NOT NULL auto_increment,
`lib_type_peri` varchar(30) character set latin1 collate latin1_general_cs NOT NULL,
PRIMARY KEY (`id_type_peri`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Contenu de la table `t_type_peri`
--
INSERT INTO `t_type_peri` VALUES (1, 'Normale');
INSERT INTO `t_type_peri` VALUES (2, 'Dépassement d''horraire');
INSERT INTO `t_type_peri` VALUES (3, 'Aistreinte');
INSERT INTO `t_type_peri` VALUES (4, 'Programmée');
--
-- Contraintes pour les tables exportées
--
--
-- Contraintes pour la table `t_intervenant`
--
ALTER TABLE `t_intervenant`
ADD CONSTRAINT `t_intervenant_ibfk_1` FOREIGN KEY (`id_domaine`) REFERENCES `t_domaine` (`id_domaine`) ON DELETE CASCADE,
ADD CONSTRAINT `t_intervenant_ibfk_2` FOREIGN KEY (`id_groupe`) REFERENCES `t_groupe` (`id_groupe`) ON DELETE CASCADE;
--
-- Contraintes pour la table `t_os`
--
ALTER TABLE `t_os`
ADD CONSTRAINT `t_os_ibfk_1` FOREIGN KEY (`id_application`) REFERENCES `t_application` (`id_application`) ON DELETE CASCADE,
ADD CONSTRAINT `t_os_ibfk_2` FOREIGN KEY (`id_orig_dem`) REFERENCES `t_orig_dem` (`id_orig_dem`) ON DELETE CASCADE,
ADD CONSTRAINT `t_os_ibfk_3` FOREIGN KEY (`id_type_dem`) REFERENCES `t_type_dem` (`id_type_dem`) ON DELETE CASCADE,
ADD CONSTRAINT `t_os_ibfk_4` FOREIGN KEY (`id_type_peri`) REFERENCES `t_type_peri` (`id_type_peri`) ON DELETE CASCADE,
ADD CONSTRAINT `t_os_ibfk_5` FOREIGN KEY (`id_etat`) REFERENCES `t_etat` (`id_etat`) ON DELETE CASCADE,
ADD CONSTRAINT `t_os_ibfk_6` FOREIGN KEY (`id_intervenant`) REFERENCES `t_intervenant` (`id_intervenant`) ON DELETE CASCADE;
--
-- Contraintes pour la table `t_soutien`
--
ALTER TABLE `t_soutien`
ADD CONSTRAINT `t_soutien_ibfk_1` FOREIGN KEY (`id_application`) REFERENCES `t_application` (`id_application`) ON DELETE CASCADE,
ADD CONSTRAINT `t_soutien_ibfk_2` FOREIGN KEY (`id_criticite`) REFERENCES `t_criticite` (`id_criticite`) ON DELETE CASCADE,
ADD CONSTRAINT `t_soutien_ibfk_3` FOREIGN KEY (`id_orig_dem`) REFERENCES `t_orig_dem` (`id_orig_dem`) ON DELETE CASCADE,
ADD CONSTRAINT `t_soutien_ibfk_4` FOREIGN KEY (`id_tache`) REFERENCES `t_tache` (`id_tache`) ON DELETE CASCADE,
ADD CONSTRAINT `t_soutien_ibfk_5` FOREIGN KEY (`id_type_peri`) REFERENCES `t_type_peri` (`id_type_peri`) ON DELETE CASCADE,
ADD CONSTRAINT `t_soutien_ibfk_6` FOREIGN KEY (`id_etat`) REFERENCES `t_etat` (`id_etat`) ON DELETE CASCADE,
ADD CONSTRAINT `t_soutien_ibfk_7` FOREIGN KEY (`id_intervenant`) REFERENCES `t_intervenant` (`id_intervenant`) ON DELETE CASCADE; |
Partager