Subversion Repositories Applications.gtt

Rev

Rev 169 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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