/
install.sql
207 lines (171 loc) · 4.79 KB
/
install.sql
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
-- ALWP installation script
-- dev by Kirk for Altisfrance
-- http://altisfrance.fr
--
-- Table structure for table `admins`
--
CREATE TABLE IF NOT EXISTS `admins` (
`id` int(11) NOT NULL,
`login` varchar(100) CHARACTER SET latin1 NOT NULL,
`playerid` varchar(17) NOT NULL,
`email` varchar(100) CHARACTER SET latin1 NOT NULL,
`password` varchar(255) CHARACTER SET latin1 NOT NULL,
`status` tinyint(4) NOT NULL,
`active` tinyint(4) NOT NULL,
`inscription` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `admins`
--
INSERT INTO `admins` (`id`, `login`, `playerid`, `email`, `password`, `status`, `active`, `inscription`) VALUES
(1, 'admin', '76561198010235705', 'contact@altisfrance.fr', '21232f297a57a5a743894a0e4a801fc3', 2, 1, '2016-02-24 23:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `dc_donations`
--
CREATE TABLE IF NOT EXISTS `dc_donations` (
`txn_id` varchar(64) NOT NULL,
`payment_status` varchar(255) NOT NULL,
`payer_email` varchar(255) NOT NULL,
`mc_gross` double NOT NULL,
`mc_currency` varchar(10) NOT NULL,
`dt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Table structure for table `impots`
--
CREATE TABLE IF NOT EXISTS `impots` (
`id` int(11) NOT NULL,
`date` date NOT NULL,
`income` int(255) NOT NULL,
`total` int(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `notification`
--
CREATE TABLE IF NOT EXISTS `notification` (
`id` int(11) NOT NULL,
`title` varchar(45) NOT NULL,
`picto` varchar(45) NOT NULL,
`text` text NOT NULL,
`datetime` datetime NOT NULL,
`link` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `notification_by_admin`
--
CREATE TABLE IF NOT EXISTS `notification_by_admin` (
`notification_id` int(45) NOT NULL,
`admin_id` int(45) NOT NULL,
`status` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table alter for table `players`
--
ALTER TABLE `players`
ADD (`credit` int(3) NOT NULL DEFAULT '0',
`sponsor` varchar(17) DEFAULT NULL);
-- --------------------------------------------------------
--
-- Table structure for table `sanctions`
--
CREATE TABLE IF NOT EXISTS `sanctions` (
`id` int(11) NOT NULL,
`playerid` varchar(17) NOT NULL,
`author` varchar(17) NOT NULL,
`date` datetime NOT NULL,
`type` enum('0','1','2') NOT NULL,
`sanction` varchar(255) NOT NULL,
`description` text NOT NULL,
`ticket` int(255) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tickets`
--
CREATE TABLE IF NOT EXISTS `tickets` (
`id` int(11) NOT NULL,
`playerid` varchar(17) NOT NULL,
`date` datetime NOT NULL,
`type` varchar(255) NOT NULL,
`description` text NOT NULL,
`target` varchar(255) DEFAULT NULL,
`witness` varchar(255) DEFAULT NULL,
`files` text,
`answer` text,
`staff_id` int(45) DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admins`
--
ALTER TABLE `admins`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `dc_donations`
--
ALTER TABLE `dc_donations`
ADD PRIMARY KEY (`txn_id`);
--
-- Indexes for table `impots`
--
ALTER TABLE `impots`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `notification`
--
ALTER TABLE `notification`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `notification_by_admin`
--
ALTER TABLE `notification_by_admin`
ADD PRIMARY KEY (`notification_id`,`admin_id`);
--
-- Indexes for table `sanctions`
--
ALTER TABLE `sanctions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tickets`
--
ALTER TABLE `tickets`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admins`
--
ALTER TABLE `admins`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `impots`
--
ALTER TABLE `impots`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `messages`
--
ALTER TABLE `notification`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `players`
--
ALTER TABLE `sanctions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=34;
--
-- AUTO_INCREMENT for table `tickets`
--
ALTER TABLE `tickets`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `vehicles`
--