96 |
jpm |
1 |
-- phpMyAdmin SQL Dump
|
|
|
2 |
-- version 2.11.4
|
|
|
3 |
-- http://www.phpmyadmin.net
|
|
|
4 |
--
|
|
|
5 |
-- Serveur: localhost
|
104 |
jpm |
6 |
-- Généré le : Mar 17 Juin 2008 à 18:14
|
96 |
jpm |
7 |
-- Version du serveur: 5.0.51
|
|
|
8 |
-- Version de PHP: 5.2.5
|
|
|
9 |
|
|
|
10 |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
|
|
11 |
|
|
|
12 |
--
|
104 |
jpm |
13 |
-- Base de données: `gtt_v4`
|
96 |
jpm |
14 |
--
|
|
|
15 |
|
|
|
16 |
-- --------------------------------------------------------
|
|
|
17 |
|
|
|
18 |
--
|
99 |
jpm |
19 |
-- Structure de la table `gestion_absence`
|
|
|
20 |
--
|
|
|
21 |
|
169 |
mathias |
22 |
DROP TABLE IF EXISTS `gestion_absence`;
|
99 |
jpm |
23 |
CREATE TABLE IF NOT EXISTS `gestion_absence` (
|
|
|
24 |
`ga_id_utilisateur` int(11) unsigned NOT NULL,
|
|
|
25 |
`ga_id_absence_motif` tinyint(3) unsigned NOT NULL,
|
|
|
26 |
`ga_id_date_absence` date NOT NULL default '0000-00-00',
|
|
|
27 |
`ga_duree` float NOT NULL default '0',
|
|
|
28 |
PRIMARY KEY (`ga_id_utilisateur`,`ga_id_absence_motif`,`ga_id_date_absence`)
|
|
|
29 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
|
30 |
|
|
|
31 |
--
|
|
|
32 |
-- Contenu de la table `gestion_absence`
|
|
|
33 |
--
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
-- --------------------------------------------------------
|
|
|
37 |
|
|
|
38 |
--
|
|
|
39 |
-- Structure de la table `gestion_absence_motif`
|
|
|
40 |
--
|
|
|
41 |
|
169 |
mathias |
42 |
DROP TABLE IF EXISTS `gestion_absence_motif`;
|
99 |
jpm |
43 |
CREATE TABLE IF NOT EXISTS `gestion_absence_motif` (
|
|
|
44 |
`gam_id_absence_motif` tinyint(3) unsigned NOT NULL auto_increment,
|
|
|
45 |
`gam_libelle` varchar(255) collate utf8_unicode_ci NOT NULL,
|
|
|
46 |
`gam_mark_cp_diminuer` tinyint(1) NOT NULL,
|
|
|
47 |
`gam_mark_hs_diminuer` tinyint(1) NOT NULL,
|
|
|
48 |
PRIMARY KEY (`gam_id_absence_motif`)
|
|
|
49 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ;
|
|
|
50 |
|
|
|
51 |
--
|
|
|
52 |
-- Contenu de la table `gestion_absence_motif`
|
|
|
53 |
--
|
|
|
54 |
|
|
|
55 |
INSERT INTO `gestion_absence_motif` (`gam_id_absence_motif`, `gam_libelle`, `gam_mark_cp_diminuer`, `gam_mark_hs_diminuer`) VALUES
|
104 |
jpm |
56 |
(1, 'Congés payés', 1, 0),
|
|
|
57 |
(2, 'Récupération', 0, 1),
|
99 |
jpm |
58 |
(3, 'Maladie', 0, 0);
|
|
|
59 |
|
|
|
60 |
-- --------------------------------------------------------
|
|
|
61 |
|
|
|
62 |
--
|
96 |
jpm |
63 |
-- Structure de la table `gestion_projet`
|
|
|
64 |
--
|
|
|
65 |
|
169 |
mathias |
66 |
DROP TABLE IF EXISTS `gestion_projet`;
|
96 |
jpm |
67 |
CREATE TABLE IF NOT EXISTS `gestion_projet` (
|
|
|
68 |
`gp_id_projet` int(11) unsigned NOT NULL auto_increment,
|
|
|
69 |
`gp_ce_projet_parent` int(11) NOT NULL default '0',
|
|
|
70 |
`gp_ce_categorie` int(11) unsigned NOT NULL default '0',
|
|
|
71 |
`gp_nom` varchar(255) collate utf8_unicode_ci NOT NULL,
|
|
|
72 |
`gp_description` text collate utf8_unicode_ci,
|
|
|
73 |
`gp_date_debut` date default '0000-00-00',
|
|
|
74 |
`gp_date_fin` date NOT NULL default '0000-00-00',
|
|
|
75 |
`gp_duree_prevue` float default '0',
|
|
|
76 |
`gp_avancement` int(11) default '0',
|
|
|
77 |
PRIMARY KEY (`gp_id_projet`)
|
|
|
78 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
|
|
|
79 |
|
|
|
80 |
--
|
|
|
81 |
-- Contenu de la table `gestion_projet`
|
|
|
82 |
--
|
|
|
83 |
|
99 |
jpm |
84 |
|
|
|
85 |
-- --------------------------------------------------------
|
|
|
86 |
|
|
|
87 |
--
|
|
|
88 |
-- Structure de la table `gestion_projet_categorie`
|
|
|
89 |
--
|
|
|
90 |
|
169 |
mathias |
91 |
DROP TABLE IF EXISTS `gestion_projet_categorie`;
|
99 |
jpm |
92 |
CREATE TABLE IF NOT EXISTS `gestion_projet_categorie` (
|
|
|
93 |
`gpc_id_categorie` int(11) unsigned NOT NULL auto_increment,
|
|
|
94 |
`gpc_libelle` varchar(255) collate utf8_unicode_ci NOT NULL,
|
|
|
95 |
`gpc_abreviation` varchar(25) collate utf8_unicode_ci default NULL,
|
|
|
96 |
PRIMARY KEY (`gpc_id_categorie`)
|
|
|
97 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;
|
|
|
98 |
|
|
|
99 |
--
|
|
|
100 |
-- Contenu de la table `gestion_projet_categorie`
|
|
|
101 |
--
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
-- --------------------------------------------------------
|
|
|
105 |
|
|
|
106 |
--
|
|
|
107 |
-- Structure de la table `gestion_travail_projet`
|
|
|
108 |
--
|
|
|
109 |
|
169 |
mathias |
110 |
DROP TABLE IF EXISTS `gestion_travail_projet`;
|
99 |
jpm |
111 |
CREATE TABLE IF NOT EXISTS `gestion_travail_projet` (
|
|
|
112 |
`gtp_id_utilisateur` int(11) unsigned NOT NULL,
|
|
|
113 |
`gtp_id_projet` int(11) unsigned NOT NULL,
|
|
|
114 |
`gtp_id_date_travail` date NOT NULL default '0000-00-00',
|
|
|
115 |
`gtp_duree` float NOT NULL default '0',
|
|
|
116 |
PRIMARY KEY (`gtp_id_utilisateur`,`gtp_id_projet`,`gtp_id_date_travail`)
|
|
|
117 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
|
118 |
|
|
|
119 |
--
|
|
|
120 |
-- Contenu de la table `gestion_travail_projet`
|
|
|
121 |
--
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
-- --------------------------------------------------------
|
|
|
125 |
|
|
|
126 |
--
|
|
|
127 |
-- Structure de la table `gestion_utilisateur`
|
|
|
128 |
--
|
|
|
129 |
|
169 |
mathias |
130 |
DROP TABLE IF EXISTS `gestion_utilisateur`;
|
99 |
jpm |
131 |
CREATE TABLE IF NOT EXISTS `gestion_utilisateur` (
|
|
|
132 |
`gu_id_utilisateur` int(11) unsigned NOT NULL auto_increment,
|
|
|
133 |
`gu_ce_statut` tinyint(3) unsigned NOT NULL,
|
|
|
134 |
`gu_nom` varchar(100) collate utf8_unicode_ci NOT NULL,
|
|
|
135 |
`gu_prenom` varchar(100) collate utf8_unicode_ci NOT NULL,
|
|
|
136 |
`gu_password` varchar(32) collate utf8_unicode_ci NOT NULL,
|
|
|
137 |
`gu_email` varchar(255) collate utf8_unicode_ci NOT NULL,
|
|
|
138 |
`gu_telephone` varchar(25) collate utf8_unicode_ci default NULL,
|
|
|
139 |
`gu_adresse` varchar(255) collate utf8_unicode_ci default NULL,
|
|
|
140 |
`gu_code_postal` varchar(6) collate utf8_unicode_ci default NULL,
|
|
|
141 |
`gu_ville` varchar(50) collate utf8_unicode_ci default NULL,
|
|
|
142 |
`gu_quota_heures_supp` float default NULL,
|
|
|
143 |
`gu_conges_payes` float default NULL,
|
|
|
144 |
`gu_temps_de_travail_jour` float default NULL,
|
|
|
145 |
`gu_temps_de_travail_mois` float default NULL,
|
|
|
146 |
`gu_mark_admin` tinyint(1) default NULL,
|
|
|
147 |
`gu_mark_recapitulatif` tinyint(1) default NULL,
|
|
|
148 |
`gu_notes` text collate utf8_unicode_ci,
|
|
|
149 |
PRIMARY KEY (`gu_id_utilisateur`)
|
|
|
150 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
|
|
|
151 |
|
|
|
152 |
--
|
|
|
153 |
-- Contenu de la table `gestion_utilisateur`
|
|
|
154 |
--
|
|
|
155 |
|
|
|
156 |
INSERT INTO `gestion_utilisateur` (`gu_id_utilisateur`, `gu_ce_statut`, `gu_nom`, `gu_prenom`, `gu_password`, `gu_email`, `gu_telephone`, `gu_adresse`, `gu_code_postal`, `gu_ville`, `gu_quota_heures_supp`, `gu_conges_payes`, `gu_temps_de_travail_jour`, `gu_temps_de_travail_mois`, `gu_mark_admin`, `gu_mark_recapitulatif`, `gu_notes`) VALUES
|
171 |
mathias |
157 |
(1, 0, 'DÉMONSTRATION', 'Démo', MD5('demo'), 'demo', '', '', '', '', 0, 0, 7, 0, 1, 0, NULL);
|
99 |
jpm |
158 |
|
|
|
159 |
-- --------------------------------------------------------
|
|
|
160 |
|
|
|
161 |
--
|
|
|
162 |
-- Structure de la table `gestion_utilisateur_a_projet`
|
|
|
163 |
--
|
|
|
164 |
|
169 |
mathias |
165 |
DROP TABLE IF EXISTS `gestion_utilisateur_a_projet`;
|
99 |
jpm |
166 |
CREATE TABLE IF NOT EXISTS `gestion_utilisateur_a_projet` (
|
|
|
167 |
`guap_id_utilisateur` int(11) unsigned NOT NULL,
|
|
|
168 |
`guap_id_projet` int(11) unsigned NOT NULL,
|
|
|
169 |
PRIMARY KEY (`guap_id_utilisateur`,`guap_id_projet`)
|
|
|
170 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
|
171 |
|
|
|
172 |
--
|
|
|
173 |
-- Contenu de la table `gestion_utilisateur_a_projet`
|
|
|
174 |
--
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
-- --------------------------------------------------------
|
|
|
178 |
|
|
|
179 |
--
|
|
|
180 |
-- Structure de la table `gestion_utilisateur_statut`
|
|
|
181 |
--
|
169 |
mathias |
182 |
DROP TABLE IF EXISTS `gestion_utilisateur_statut`;
|
99 |
jpm |
183 |
CREATE TABLE IF NOT EXISTS `gestion_utilisateur_statut` (
|
|
|
184 |
`gus_id_utilisateur_statut` tinyint(3) unsigned NOT NULL auto_increment,
|
|
|
185 |
`gus_libelle` varchar(255) collate utf8_unicode_ci NOT NULL,
|
|
|
186 |
`gus_mark_recapitulatif` tinyint(1) NOT NULL default '1',
|
|
|
187 |
PRIMARY KEY (`gus_id_utilisateur_statut`)
|
|
|
188 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;
|
|
|
189 |
|
|
|
190 |
--
|
|
|
191 |
-- Contenu de la table `gestion_utilisateur_statut`
|
|
|
192 |
--
|
|
|
193 |
|
|
|
194 |
INSERT INTO `gestion_utilisateur_statut` (`gus_id_utilisateur_statut`, `gus_libelle`, `gus_mark_recapitulatif`) VALUES
|
104 |
jpm |
195 |
(1, 'Salarié', 1),
|
|
|
196 |
(2, 'Président', 0),
|
99 |
jpm |
197 |
(3, 'Stagiaire', 0);
|