-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtdb.sql
More file actions
161 lines (132 loc) · 4.87 KB
/
tdb.sql
File metadata and controls
161 lines (132 loc) · 4.87 KB
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
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Mar 14 Octobre 2014 à 17:06
-- Version du serveur: 5.5.38-0ubuntu0.14.04.1
-- Version de PHP: 5.5.9-1ubuntu4.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de données: `tdb`
--
-- --------------------------------------------------------
--
-- Structure de la table `accounts`
--
CREATE TABLE IF NOT EXISTS `accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`trigramme` char(3) DEFAULT NULL,
`name` text NOT NULL,
`first_name` text NOT NULL,
`nickname` text NOT NULL,
`casert` tinytext NOT NULL,
`status` int(11) DEFAULT NULL,
`promo` int(11) DEFAULT NULL,
`mail` text NOT NULL,
`picture` text NOT NULL,
`balance` int(11) NOT NULL DEFAULT '0',
`turnover` int(11) NOT NULL DEFAULT '0',
`total_clopes` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3670 ;
--
-- Contenu de la table `accounts`
--
INSERT INTO `accounts` (`id`, `trigramme`, `name`, `first_name`, `nickname`, `casert`, `status`, `promo`, `mail`, `picture`, `balance`, `turnover`, `total_clopes`) VALUES
(1, 'BOB', '', '', '', '', 2, NULL, '', '', 0, 0, 0);
-- --------------------------------------------------------
--
-- Structure de la table `admins`
--
CREATE TABLE IF NOT EXISTS `admins` (
`id` int(11) NOT NULL DEFAULT '0',
`permissions` int(11) DEFAULT NULL,
`passwd` tinytext,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Contenu de la table `admins`
--
INSERT INTO `admins` (`id`, `permissions`, `passwd`) VALUES
(1, 3, '9f9d51bc70ef21ca5c14f307980a29d8');
-- --------------------------------------------------------
--
-- Structure de la table `clopes`
--
CREATE TABLE IF NOT EXISTS `clopes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`marque` tinytext,
`prix` int(11) DEFAULT NULL,
`quantite` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Structure de la table `droits`
--
CREATE TABLE IF NOT EXISTS `droits` (
`permissions` int(11) NOT NULL,
`nom` varchar(20) NOT NULL,
`log_eleve` tinyint(1) NOT NULL DEFAULT '0',
`credit` tinyint(1) NOT NULL DEFAULT '0',
`log_groupe` tinyint(1) NOT NULL DEFAULT '0',
`transfert` tinyint(1) NOT NULL DEFAULT '0',
`creer_tri` tinyint(1) NOT NULL DEFAULT '0',
`modifier_tri` tinyint(1) NOT NULL DEFAULT '0',
`supprimer_tri` tinyint(1) NOT NULL DEFAULT '0',
`somme_tri` tinyint(1) NOT NULL DEFAULT '0',
`voir_comptes` tinyint(1) NOT NULL DEFAULT '0',
`debit_fichier` tinyint(1) NOT NULL DEFAULT '0',
`export` tinyint(1) NOT NULL DEFAULT '0',
`reinitialiser` tinyint(1) NOT NULL DEFAULT '0',
`super_admin` tinyint(1) NOT NULL DEFAULT '0',
`banque_binet` tinyint(1) NOT NULL DEFAULT '0',
`gestion_clopes` tinyint(1) NOT NULL DEFAULT '0',
`gestion_admin` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`permissions`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Contenu de la table `droits`
--
INSERT INTO `droits` (`permissions`, `nom`, `log_eleve`, `credit`, `log_groupe`, `transfert`, `creer_tri`, `modifier_tri`, `supprimer_tri`, `somme_tri`, `voir_comptes`, `debit_fichier`, `export`, `reinitialiser`, `super_admin`, `banque_binet`, `gestion_clopes`, `gestion_admin`) VALUES
(0, 'Pékin', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
(1, 'Ami du BôB', 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
(2, 'Ex-BôBarman', 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
(3, 'BôBarman', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
-- --------------------------------------------------------
--
-- Structure de la table `transactions`
--
CREATE TABLE IF NOT EXISTS `transactions` (
`id` int(11) DEFAULT NULL,
`price` int(11) DEFAULT NULL,
`comment` text,
`admin` int(11) DEFAULT NULL,
`id2` int(11) DEFAULT NULL,
`date` datetime DEFAULT NULL,
KEY `id_date` (`id`,`date`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `transactions_history`
--
CREATE TABLE IF NOT EXISTS `transactions_history` (
`id` int(11) DEFAULT NULL,
`price` int(11) DEFAULT NULL,
`comment` text,
`admin` int(11) DEFAULT NULL,
`id2` int(11) DEFAULT NULL,
`date` datetime DEFAULT NULL,
KEY `id_date` (`id`,`date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;