|
@@ -0,0 +1,598 @@
|
|
1
|
+-- phpMyAdmin SQL Dump
|
|
2
|
+-- version 2.10.2
|
|
3
|
+-- http://www.phpmyadmin.net
|
|
4
|
+--
|
|
5
|
+-- Host: localhost
|
|
6
|
+-- Generation Time: Apr 07, 2008 at 05:21 PM
|
|
7
|
+-- Server version: 5.0.38
|
|
8
|
+-- PHP Version: 5.2.1
|
|
9
|
+
|
|
10
|
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
|
11
|
+
|
|
12
|
+--
|
|
13
|
+-- Database: `admin`
|
|
14
|
+--
|
|
15
|
+CREATE DATABASE `admin` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
|
|
16
|
+USE `admin`;
|
|
17
|
+
|
|
18
|
+-- --------------------------------------------------------
|
|
19
|
+
|
|
20
|
+--
|
|
21
|
+-- Table structure for table `actions`
|
|
22
|
+--
|
|
23
|
+
|
|
24
|
+CREATE TABLE `actions` (
|
|
25
|
+ `action_id` int(5) NOT NULL auto_increment,
|
|
26
|
+ `user_id` int(5) NOT NULL,
|
|
27
|
+ `action_type` enum('pass','create','lock','unlock','restart','updateconf') NOT NULL,
|
|
28
|
+ `action_value` text NOT NULL,
|
|
29
|
+ PRIMARY KEY (`action_id`)
|
|
30
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=66467 ;
|
|
31
|
+
|
|
32
|
+-- --------------------------------------------------------
|
|
33
|
+
|
|
34
|
+--
|
|
35
|
+-- Table structure for table `banneduser`
|
|
36
|
+--
|
|
37
|
+
|
|
38
|
+CREATE TABLE `banneduser` (
|
|
39
|
+ `bu_id` int(5) NOT NULL auto_increment,
|
|
40
|
+ `bu_name` varchar(100) NOT NULL default '',
|
|
41
|
+ PRIMARY KEY (`bu_id`)
|
|
42
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
|
|
43
|
+
|
|
44
|
+--
|
|
45
|
+-- Dumping data for table `banneduser`
|
|
46
|
+--
|
|
47
|
+
|
|
48
|
+INSERT INTO `banneduser` (`bu_id`, `bu_name`) VALUES
|
|
49
|
+(1, 'admin'),
|
|
50
|
+(2, 'www'),
|
|
51
|
+(3, 'support'),
|
|
52
|
+(4, 'utd');
|
|
53
|
+
|
|
54
|
+-- --------------------------------------------------------
|
|
55
|
+
|
|
56
|
+--
|
|
57
|
+-- Table structure for table `billitems`
|
|
58
|
+--
|
|
59
|
+
|
|
60
|
+CREATE TABLE `billitems` (
|
|
61
|
+ `bi_id` int(5) NOT NULL auto_increment,
|
|
62
|
+ `bill_id` int(5) NOT NULL,
|
|
63
|
+ `up_id` int(5) NOT NULL,
|
|
64
|
+ `bi_cost` int(5) NOT NULL,
|
|
65
|
+ PRIMARY KEY (`bi_id`)
|
|
66
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
|
|
67
|
+
|
|
68
|
+-- --------------------------------------------------------
|
|
69
|
+
|
|
70
|
+--
|
|
71
|
+-- Table structure for table `bills`
|
|
72
|
+--
|
|
73
|
+
|
|
74
|
+CREATE TABLE `bills` (
|
|
75
|
+ `bill_id` int(5) NOT NULL auto_increment,
|
|
76
|
+ `user_id` int(5) NOT NULL,
|
|
77
|
+ `bill_due` int(11) NOT NULL,
|
|
78
|
+ `bill_generated` int(11) NOT NULL,
|
|
79
|
+ `bill_total` int(5) NOT NULL,
|
|
80
|
+ `bill_paid` int(1) NOT NULL default '0',
|
|
81
|
+ PRIMARY KEY (`bill_id`)
|
|
82
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
|
|
83
|
+
|
|
84
|
+-- --------------------------------------------------------
|
|
85
|
+
|
|
86
|
+--
|
|
87
|
+-- Table structure for table `db_dbs`
|
|
88
|
+--
|
|
89
|
+
|
|
90
|
+CREATE TABLE `db_dbs` (
|
|
91
|
+ `db_id` int(5) NOT NULL auto_increment,
|
|
92
|
+ `user_id` int(5) NOT NULL default '0',
|
|
93
|
+ `db_name` varchar(50) NOT NULL default '',
|
|
94
|
+ PRIMARY KEY (`db_id`),
|
|
95
|
+ UNIQUE KEY `db_name` (`db_name`)
|
|
96
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=40 ;
|
|
97
|
+
|
|
98
|
+-- --------------------------------------------------------
|
|
99
|
+
|
|
100
|
+--
|
|
101
|
+-- Table structure for table `db_perms`
|
|
102
|
+--
|
|
103
|
+
|
|
104
|
+CREATE TABLE `db_perms` (
|
|
105
|
+ `dbperm_id` int(5) NOT NULL auto_increment,
|
|
106
|
+ `dbuser_id` int(5) NOT NULL default '0',
|
|
107
|
+ `db_id` int(5) NOT NULL default '0',
|
|
108
|
+ PRIMARY KEY (`dbperm_id`)
|
|
109
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=45 ;
|
|
110
|
+
|
|
111
|
+-- --------------------------------------------------------
|
|
112
|
+
|
|
113
|
+--
|
|
114
|
+-- Table structure for table `db_users`
|
|
115
|
+--
|
|
116
|
+
|
|
117
|
+CREATE TABLE `db_users` (
|
|
118
|
+ `dbuser_id` int(5) NOT NULL auto_increment,
|
|
119
|
+ `user_id` int(5) NOT NULL default '0',
|
|
120
|
+ `dbuser_name` varchar(50) NOT NULL default '',
|
|
121
|
+ PRIMARY KEY (`dbuser_id`),
|
|
122
|
+ UNIQUE KEY `dbuser_name` (`dbuser_name`)
|
|
123
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;
|
|
124
|
+
|
|
125
|
+-- --------------------------------------------------------
|
|
126
|
+
|
|
127
|
+--
|
|
128
|
+-- Table structure for table `discounts`
|
|
129
|
+--
|
|
130
|
+
|
|
131
|
+CREATE TABLE `discounts` (
|
|
132
|
+ `discount_id` int(5) NOT NULL auto_increment,
|
|
133
|
+ `package_id` int(5) NOT NULL default '1',
|
|
134
|
+ `discount_code` varchar(24) NOT NULL default '',
|
|
135
|
+ `discount_time` int(11) NOT NULL default '0',
|
|
136
|
+ `discount_money` int(10) NOT NULL default '0',
|
|
137
|
+ `discount_type` enum('signup','general') NOT NULL default 'signup',
|
|
138
|
+ `discount_start` int(11) NOT NULL default '0',
|
|
139
|
+ `discount_end` int(11) NOT NULL default '0',
|
|
140
|
+ `discount_message` text NOT NULL,
|
|
141
|
+ PRIMARY KEY (`discount_id`),
|
|
142
|
+ UNIQUE KEY `vouhcer_code` (`discount_code`)
|
|
143
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
|
|
144
|
+
|
|
145
|
+-- --------------------------------------------------------
|
|
146
|
+
|
|
147
|
+--
|
|
148
|
+-- Table structure for table `discountusers`
|
|
149
|
+--
|
|
150
|
+
|
|
151
|
+CREATE TABLE `discountusers` (
|
|
152
|
+ `du_id` int(5) NOT NULL auto_increment,
|
|
153
|
+ `user_id` int(5) NOT NULL default '0',
|
|
154
|
+ `discount_id` int(5) NOT NULL default '0',
|
|
155
|
+ PRIMARY KEY (`du_id`)
|
|
156
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
|
|
157
|
+
|
|
158
|
+-- --------------------------------------------------------
|
|
159
|
+
|
|
160
|
+--
|
|
161
|
+-- Table structure for table `domains`
|
|
162
|
+--
|
|
163
|
+
|
|
164
|
+CREATE TABLE `domains` (
|
|
165
|
+ `domain_id` int(5) NOT NULL auto_increment,
|
|
166
|
+ `user_id` int(5) NOT NULL default '0',
|
|
167
|
+ `domain_name` varchar(200) NOT NULL default '',
|
|
168
|
+ `domain_enabled` tinyint(1) NOT NULL default '0',
|
|
169
|
+ `domain_parent` int(5) NOT NULL default '0',
|
|
170
|
+ PRIMARY KEY (`domain_id`),
|
|
171
|
+ UNIQUE KEY `domain_name` (`domain_name`),
|
|
172
|
+ KEY `user_id` (`user_id`)
|
|
173
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=100 ;
|
|
174
|
+
|
|
175
|
+-- --------------------------------------------------------
|
|
176
|
+
|
|
177
|
+--
|
|
178
|
+-- Table structure for table `email`
|
|
179
|
+--
|
|
180
|
+
|
|
181
|
+CREATE TABLE `email` (
|
|
182
|
+ `email_id` int(5) NOT NULL auto_increment,
|
|
183
|
+ `domain_id` int(5) default NULL,
|
|
184
|
+ `email_user` varchar(255) default NULL,
|
|
185
|
+ `mailbox_id` int(5) default NULL,
|
|
186
|
+ PRIMARY KEY (`email_id`)
|
|
187
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
|
|
188
|
+
|
|
189
|
+-- --------------------------------------------------------
|
|
190
|
+
|
|
191
|
+--
|
|
192
|
+-- Table structure for table `finances`
|
|
193
|
+--
|
|
194
|
+
|
|
195
|
+CREATE TABLE `finances` (
|
|
196
|
+ `finance_id` int(5) NOT NULL auto_increment,
|
|
197
|
+ `finance_time` int(11) NOT NULL,
|
|
198
|
+ `finance_desc` varchar(200) NOT NULL,
|
|
199
|
+ `user_id` int(5) NOT NULL,
|
|
200
|
+ `finance_receipts` int(10) NOT NULL default '0',
|
|
201
|
+ `finance_payments` int(10) NOT NULL default '0',
|
|
202
|
+ `finance_balance` int(10) NOT NULL,
|
|
203
|
+ PRIMARY KEY (`finance_id`)
|
|
204
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=37 ;
|
|
205
|
+
|
|
206
|
+-- --------------------------------------------------------
|
|
207
|
+
|
|
208
|
+--
|
|
209
|
+-- Table structure for table `historic_user`
|
|
210
|
+--
|
|
211
|
+
|
|
212
|
+CREATE TABLE `historic_user` (
|
|
213
|
+ `hu_id` int(7) NOT NULL auto_increment,
|
|
214
|
+ `user_id` int(5) NOT NULL default '0',
|
|
215
|
+ `hu_start` int(11) NOT NULL default '0',
|
|
216
|
+ `hu_end` int(11) NOT NULL default '0',
|
|
217
|
+ `hu_hdd` bigint(12) NOT NULL default '0',
|
|
218
|
+ `hu_bw` bigint(12) NOT NULL default '0',
|
|
219
|
+ PRIMARY KEY (`hu_id`)
|
|
220
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=197 ;
|
|
221
|
+
|
|
222
|
+-- --------------------------------------------------------
|
|
223
|
+
|
|
224
|
+--
|
|
225
|
+-- Table structure for table `ipbans`
|
|
226
|
+--
|
|
227
|
+
|
|
228
|
+CREATE TABLE `ipbans` (
|
|
229
|
+ `ipban_id` int(5) NOT NULL auto_increment,
|
|
230
|
+ `ipban_ip` varchar(15) NOT NULL,
|
|
231
|
+ `ipban_expires` int(11) NOT NULL,
|
|
232
|
+ `ipban_message` varchar(200) NOT NULL,
|
|
233
|
+ PRIMARY KEY (`ipban_id`),
|
|
234
|
+ KEY `ipban_ip` (`ipban_ip`),
|
|
235
|
+ KEY `ipban_expires` (`ipban_expires`)
|
|
236
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
|
|
237
|
+
|
|
238
|
+-- --------------------------------------------------------
|
|
239
|
+
|
|
240
|
+--
|
|
241
|
+-- Table structure for table `iptdata`
|
|
242
|
+--
|
|
243
|
+
|
|
244
|
+CREATE TABLE `iptdata` (
|
|
245
|
+ `ipt_id` int(5) NOT NULL auto_increment,
|
|
246
|
+ `ipt_user` varchar(100) NOT NULL,
|
|
247
|
+ `ipt_in` int(15) NOT NULL,
|
|
248
|
+ `ipt_out` int(15) NOT NULL,
|
|
249
|
+ `ipt_lastchecked` int(11) NOT NULL,
|
|
250
|
+ PRIMARY KEY (`ipt_id`)
|
|
251
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
|
|
252
|
+
|
|
253
|
+-- --------------------------------------------------------
|
|
254
|
+
|
|
255
|
+--
|
|
256
|
+-- Table structure for table `issues_assigns`
|
|
257
|
+--
|
|
258
|
+
|
|
259
|
+CREATE TABLE `issues_assigns` (
|
|
260
|
+ `iaut_id` int(5) NOT NULL auto_increment,
|
|
261
|
+ `icat_id` int(5) default NULL,
|
|
262
|
+ `user_id` int(5) default NULL,
|
|
263
|
+ PRIMARY KEY (`iaut_id`)
|
|
264
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
|
265
|
+
|
|
266
|
+-- --------------------------------------------------------
|
|
267
|
+
|
|
268
|
+--
|
|
269
|
+-- Table structure for table `issues_categories`
|
|
270
|
+--
|
|
271
|
+
|
|
272
|
+CREATE TABLE `issues_categories` (
|
|
273
|
+ `icat_id` int(5) NOT NULL auto_increment,
|
|
274
|
+ `icat_name` varchar(100) default NULL,
|
|
275
|
+ `icat_assign` int(5) NOT NULL default '0',
|
|
276
|
+ PRIMARY KEY (`icat_id`)
|
|
277
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=10 ;
|
|
278
|
+
|
|
279
|
+--
|
|
280
|
+-- Dumping data for table `issues_categories`
|
|
281
|
+--
|
|
282
|
+
|
|
283
|
+INSERT INTO `issues_categories` (`icat_id`, `icat_name`, `icat_assign`) VALUES
|
|
284
|
+(1, 'General', 0),
|
|
285
|
+(2, 'Website', 0),
|
|
286
|
+(3, 'Issue Tracker', 3),
|
|
287
|
+(4, 'Service Monitor', 0),
|
|
288
|
+(5, 'Long Term', 0),
|
|
289
|
+(6, 'Signup', 0),
|
|
290
|
+(7, 'Control Panel', 0),
|
|
291
|
+(8, 'Admin', 0),
|
|
292
|
+(9, 'Server-Asimov', 0);
|
|
293
|
+
|
|
294
|
+-- --------------------------------------------------------
|
|
295
|
+
|
|
296
|
+--
|
|
297
|
+-- Table structure for table `issues_issues`
|
|
298
|
+--
|
|
299
|
+
|
|
300
|
+CREATE TABLE `issues_issues` (
|
|
301
|
+ `i_id` int(5) NOT NULL auto_increment,
|
|
302
|
+ `icat_id` int(5) default NULL,
|
|
303
|
+ `i_submitter` int(5) default NULL,
|
|
304
|
+ `i_assignee` int(5) default NULL,
|
|
305
|
+ `i_priority` enum('urgent','high','normal','low') default 'normal',
|
|
306
|
+ `i_added` int(11) default NULL,
|
|
307
|
+ `i_updated` int(11) default NULL,
|
|
308
|
+ `i_deadline` int(11) default NULL,
|
|
309
|
+ `i_title` varchar(100) default NULL,
|
|
310
|
+ `i_status` enum('open','assigned','closed','reopened') default 'open',
|
|
311
|
+ `i_text` text,
|
|
312
|
+ `i_extensiveness` enum('trivial','normal','extensive') NOT NULL default 'normal',
|
|
313
|
+ PRIMARY KEY (`i_id`)
|
|
314
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=80 ;
|
|
315
|
+
|
|
316
|
+-- --------------------------------------------------------
|
|
317
|
+
|
|
318
|
+--
|
|
319
|
+-- Table structure for table `issues_logs`
|
|
320
|
+--
|
|
321
|
+
|
|
322
|
+CREATE TABLE `issues_logs` (
|
|
323
|
+ `ilog_id` int(5) NOT NULL auto_increment,
|
|
324
|
+ `i_id` int(5) default NULL,
|
|
325
|
+ `ilog_time` int(11) default NULL,
|
|
326
|
+ `user_id` int(5) default NULL,
|
|
327
|
+ `ilog_field` varchar(100) default NULL,
|
|
328
|
+ `ilog_old` text,
|
|
329
|
+ `ilog_new` text,
|
|
330
|
+ PRIMARY KEY (`ilog_id`)
|
|
331
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=70 ;
|
|
332
|
+
|
|
333
|
+-- --------------------------------------------------------
|
|
334
|
+
|
|
335
|
+--
|
|
336
|
+-- Table structure for table `issues_replies`
|
|
337
|
+--
|
|
338
|
+
|
|
339
|
+CREATE TABLE `issues_replies` (
|
|
340
|
+ `irep_id` int(5) NOT NULL auto_increment,
|
|
341
|
+ `i_id` int(5) default NULL,
|
|
342
|
+ `user_id` int(5) default NULL,
|
|
343
|
+ `irep_time` int(11) default NULL,
|
|
344
|
+ `irep_text` text,
|
|
345
|
+ PRIMARY KEY (`irep_id`)
|
|
346
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=8 ;
|
|
347
|
+
|
|
348
|
+-- --------------------------------------------------------
|
|
349
|
+
|
|
350
|
+--
|
|
351
|
+-- Table structure for table `issues_searches`
|
|
352
|
+--
|
|
353
|
+
|
|
354
|
+CREATE TABLE `issues_searches` (
|
|
355
|
+ `isea_id` int(5) NOT NULL auto_increment,
|
|
356
|
+ `user_id` int(5) default NULL,
|
|
357
|
+ `isea_name` varchar(100) default NULL,
|
|
358
|
+ `isea_options` text,
|
|
359
|
+ PRIMARY KEY (`isea_id`)
|
|
360
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=8 ;
|
|
361
|
+
|
|
362
|
+-- --------------------------------------------------------
|
|
363
|
+
|
|
364
|
+--
|
|
365
|
+-- Table structure for table `log`
|
|
366
|
+--
|
|
367
|
+
|
|
368
|
+CREATE TABLE `log` (
|
|
369
|
+ `log_id` int(5) NOT NULL auto_increment,
|
|
370
|
+ `user_id` int(5) NOT NULL,
|
|
371
|
+ `log_level` enum('critical','important','normal','info','unknown') NOT NULL default 'unknown',
|
|
372
|
+ `log_time` int(11) NOT NULL,
|
|
373
|
+ `log_message` varchar(200) NOT NULL,
|
|
374
|
+ PRIMARY KEY (`log_id`)
|
|
375
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2012 ;
|
|
376
|
+
|
|
377
|
+-- --------------------------------------------------------
|
|
378
|
+
|
|
379
|
+--
|
|
380
|
+-- Table structure for table `mailboxes`
|
|
381
|
+--
|
|
382
|
+
|
|
383
|
+CREATE TABLE `mailboxes` (
|
|
384
|
+ `mailbox_id` int(5) NOT NULL auto_increment,
|
|
385
|
+ `domain_id` int(5) default NULL,
|
|
386
|
+ `mailbox_user` varchar(255) default NULL,
|
|
387
|
+ `mailbox_password` varchar(255) default NULL,
|
|
388
|
+ PRIMARY KEY (`mailbox_id`)
|
|
389
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
|
|
390
|
+
|
|
391
|
+-- --------------------------------------------------------
|
|
392
|
+
|
|
393
|
+--
|
|
394
|
+-- Table structure for table `messages`
|
|
395
|
+--
|
|
396
|
+
|
|
397
|
+CREATE TABLE `messages` (
|
|
398
|
+ `message_id` int(4) NOT NULL auto_increment,
|
|
399
|
+ `message_type` enum('admin','public','announcement','information') NOT NULL default 'public',
|
|
400
|
+ `message_title` varchar(150) NOT NULL default '',
|
|
401
|
+ `message_time` int(12) NOT NULL default '0',
|
|
402
|
+ `message_body` text NOT NULL,
|
|
403
|
+ PRIMARY KEY (`message_id`)
|
|
404
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
|
|
405
|
+
|
|
406
|
+-- --------------------------------------------------------
|
|
407
|
+
|
|
408
|
+--
|
|
409
|
+-- Table structure for table `packages`
|
|
410
|
+--
|
|
411
|
+
|
|
412
|
+CREATE TABLE `packages` (
|
|
413
|
+ `package_id` int(5) NOT NULL auto_increment,
|
|
414
|
+ `package_name` varchar(255) NOT NULL,
|
|
415
|
+ `package_cost` int(5) NOT NULL,
|
|
416
|
+ `package_duration` int(10) NOT NULL,
|
|
417
|
+ `package_type` enum('hosting','dns','backup','ssh') NOT NULL,
|
|
418
|
+ `package_description` text NOT NULL,
|
|
419
|
+ `package_published` int(1) NOT NULL default '0',
|
|
420
|
+ PRIMARY KEY (`package_id`)
|
|
421
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
|
|
422
|
+
|
|
423
|
+--
|
|
424
|
+-- Dumping data for table `packages`
|
|
425
|
+--
|
|
426
|
+
|
|
427
|
+INSERT INTO `packages` (`package_id`, `package_name`, `package_cost`, `package_duration`, `package_type`, `package_description`, `package_published`) VALUES
|
|
428
|
+(1, 'Hosting - One Year', 3500, 31556736, 'hosting', 'Our standard hosting package. This package gives you a full year''s hosting for just £35. All of our hosting packages give you 3.5 GB of storage, and a massive 50 GB of data transfer per month. You also get basic DNS hosting and unlimited e-mail addresses, sites, subdomains and MySQL databases.', 1),
|
|
429
|
+(2, 'Hosting - Three Months', 1000, 7889184, 'hosting', 'A shorter hosting package, for those who don''t want to pay for a year''s hosting in advance. Three months hosting for just £10. All of our hosting packages give you 3.5 GB of storage, and a massive 50 GB of data transfer per month. You also get basic DNS hosting and unlimited e-mail addresses, sites, subdomains and MySQL databases.', 1),
|
|
430
|
+(3, 'DNS - One Year', 500, 31556736, 'dns', '', 0),
|
|
431
|
+(4, 'DNS - Three Months', 150, 7889184, 'dns', '', 0),
|
|
432
|
+(5, 'SSH access - One Year', 0, 31556736, 'ssh', '', 0),
|
|
433
|
+(6, 'SSH access - Three Months', 0, 7889184, 'ssh', '', 0);
|
|
434
|
+
|
|
435
|
+-- --------------------------------------------------------
|
|
436
|
+
|
|
437
|
+--
|
|
438
|
+-- Table structure for table `records`
|
|
439
|
+--
|
|
440
|
+
|
|
441
|
+CREATE TABLE `records` (
|
|
442
|
+ `record_id` int(5) NOT NULL auto_increment,
|
|
443
|
+ `domain_id` int(5) NOT NULL default '0',
|
|
444
|
+ `record_type` char(5) NOT NULL,
|
|
445
|
+ `record_value` varchar(200) NOT NULL default '',
|
|
446
|
+ `record_ttl` int(10) NOT NULL default '86400',
|
|
447
|
+ PRIMARY KEY (`record_id`),
|
|
448
|
+ KEY `domain_id` (`domain_id`)
|
|
449
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=155 ;
|
|
450
|
+
|
|
451
|
+-- --------------------------------------------------------
|
|
452
|
+
|
|
453
|
+--
|
|
454
|
+-- Table structure for table `sessions`
|
|
455
|
+--
|
|
456
|
+
|
|
457
|
+CREATE TABLE `sessions` (
|
|
458
|
+ `session_id` int(3) NOT NULL auto_increment,
|
|
459
|
+ `user_id` int(2) NOT NULL default '0',
|
|
460
|
+ `session_ip` varchar(15) NOT NULL default '',
|
|
461
|
+ `session_start` int(12) NOT NULL default '0',
|
|
462
|
+ `session_last` int(12) NOT NULL default '0',
|
|
463
|
+ `session_ident` varchar(32) NOT NULL default '',
|
|
464
|
+ `session_spoof` int(5) NOT NULL default '0',
|
|
465
|
+ PRIMARY KEY (`session_id`),
|
|
466
|
+ KEY `session_ident` (`session_ident`)
|
|
467
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=726 ;
|
|
468
|
+
|
|
469
|
+-- --------------------------------------------------------
|
|
470
|
+
|
|
471
|
+--
|
|
472
|
+-- Table structure for table `signups`
|
|
473
|
+--
|
|
474
|
+
|
|
475
|
+CREATE TABLE `signups` (
|
|
476
|
+ `signup_id` int(5) NOT NULL auto_increment,
|
|
477
|
+ `signup_ip` varchar(12) NOT NULL,
|
|
478
|
+ `signup_time` int(11) NOT NULL,
|
|
479
|
+ `signup_data` text NOT NULL,
|
|
480
|
+ `signup_processed` int(1) NOT NULL default '0',
|
|
481
|
+ `signup_checked` int(1) NOT NULL default '0',
|
|
482
|
+ PRIMARY KEY (`signup_id`)
|
|
483
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
|
|
484
|
+
|
|
485
|
+-- --------------------------------------------------------
|
|
486
|
+
|
|
487
|
+--
|
|
488
|
+-- Table structure for table `sites`
|
|
489
|
+--
|
|
490
|
+
|
|
491
|
+CREATE TABLE `sites` (
|
|
492
|
+ `site_id` int(3) NOT NULL auto_increment,
|
|
493
|
+ `user_id` int(2) NOT NULL default '0',
|
|
494
|
+ `site_name` varchar(100) NOT NULL default '',
|
|
495
|
+ `site_bandin` bigint(12) NOT NULL default '0',
|
|
496
|
+ `site_bandout` bigint(12) NOT NULL default '0',
|
|
497
|
+ `site_docroot` text NOT NULL,
|
|
498
|
+ `site_curdocroot` text NOT NULL,
|
|
499
|
+ `site_logpos` int(10) NOT NULL default '0',
|
|
500
|
+ `site_php` enum('stable','dev','legacy') NOT NULL default 'stable',
|
|
501
|
+ `site_htaccess` smallint(1) NOT NULL default '1',
|
|
502
|
+ `site_index` smallint(1) NOT NULL default '1',
|
|
503
|
+ PRIMARY KEY (`site_id`)
|
|
504
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=57 ;
|
|
505
|
+
|
|
506
|
+-- --------------------------------------------------------
|
|
507
|
+
|
|
508
|
+--
|
|
509
|
+-- Table structure for table `sshkeys`
|
|
510
|
+--
|
|
511
|
+
|
|
512
|
+CREATE TABLE `sshkeys` (
|
|
513
|
+ `key_id` int(5) NOT NULL auto_increment,
|
|
514
|
+ `user_id` int(5) NOT NULL,
|
|
515
|
+ `key_comment` varchar(200) NOT NULL,
|
|
516
|
+ `key_key` text NOT NULL,
|
|
517
|
+ PRIMARY KEY (`key_id`)
|
|
518
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
|
|
519
|
+
|
|
520
|
+-- --------------------------------------------------------
|
|
521
|
+
|
|
522
|
+--
|
|
523
|
+-- Table structure for table `tickets`
|
|
524
|
+--
|
|
525
|
+
|
|
526
|
+CREATE TABLE `tickets` (
|
|
527
|
+ `ticket_id` int(4) NOT NULL auto_increment,
|
|
528
|
+ `user_id` int(2) NOT NULL default '0',
|
|
529
|
+ `ticket_status` enum('new','assigned','closed','reopened','reply') NOT NULL default 'new',
|
|
530
|
+ `ticket_thread` int(4) NOT NULL default '0',
|
|
531
|
+ `ticket_title` varchar(200) NOT NULL default '',
|
|
532
|
+ `ticket_body` text NOT NULL,
|
|
533
|
+ `ticket_time` int(12) NOT NULL default '0',
|
|
534
|
+ PRIMARY KEY (`ticket_id`),
|
|
535
|
+ KEY `user_id` (`user_id`),
|
|
536
|
+ KEY `ticket_thread` (`ticket_thread`)
|
|
537
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=106 ;
|
|
538
|
+
|
|
539
|
+--
|
|
540
|
+-- Table structure for table `userdetails`
|
|
541
|
+--
|
|
542
|
+
|
|
543
|
+CREATE TABLE `userdetails` (
|
|
544
|
+ `user_id` int(3) NOT NULL default '0',
|
|
545
|
+ `ud_name` text NOT NULL,
|
|
546
|
+ `ud_address` text NOT NULL,
|
|
547
|
+ `ud_telephone` varchar(20) NOT NULL default '',
|
|
548
|
+ UNIQUE KEY `user_id` (`user_id`)
|
|
549
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
|
550
|
+
|
|
551
|
+-- --------------------------------------------------------
|
|
552
|
+
|
|
553
|
+--
|
|
554
|
+-- Table structure for table `userpackages`
|
|
555
|
+--
|
|
556
|
+
|
|
557
|
+CREATE TABLE `userpackages` (
|
|
558
|
+ `up_id` int(5) NOT NULL auto_increment,
|
|
559
|
+ `package_id` int(5) NOT NULL,
|
|
560
|
+ `user_id` int(5) NOT NULL,
|
|
561
|
+ `up_expires` int(11) NOT NULL,
|
|
562
|
+ `up_cost` int(5) NOT NULL,
|
|
563
|
+ `up_invoice` int(1) NOT NULL default '1',
|
|
564
|
+ `up_active` int(1) NOT NULL default '1',
|
|
565
|
+ PRIMARY KEY (`up_id`),
|
|
566
|
+ KEY `user_id` (`user_id`),
|
|
567
|
+ KEY `up_active` (`up_active`)
|
|
568
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
|
|
569
|
+
|
|
570
|
+-- --------------------------------------------------------
|
|
571
|
+
|
|
572
|
+--
|
|
573
|
+-- Table structure for table `users`
|
|
574
|
+--
|
|
575
|
+
|
|
576
|
+CREATE TABLE `users` (
|
|
577
|
+ `user_id` int(3) NOT NULL auto_increment,
|
|
578
|
+ `user_name` varchar(20) NOT NULL default '',
|
|
579
|
+ `user_pass` varchar(33) NOT NULL,
|
|
580
|
+ `user_email` varchar(255) NOT NULL default '',
|
|
581
|
+ `user_admin` int(1) NOT NULL default '0',
|
|
582
|
+ `user_tac` int(4) NOT NULL default '0',
|
|
583
|
+ `user_ref` int(5) NOT NULL default '0',
|
|
584
|
+ `user_signup` int(11) NOT NULL,
|
|
585
|
+ `user_limitstarts` int(11) NOT NULL default '0',
|
|
586
|
+ `user_limitends` int(11) NOT NULL default '0',
|
|
587
|
+ `mail_announce` int(1) NOT NULL default '1',
|
|
588
|
+ `mail_tickets` int(1) NOT NULL default '1',
|
|
589
|
+ `mail_warning` int(1) NOT NULL default '1',
|
|
590
|
+ `mail_over` int(1) NOT NULL default '1',
|
|
591
|
+ `band_total` bigint(12) NOT NULL default '50000000000',
|
|
592
|
+ `band_used` bigint(12) NOT NULL default '0',
|
|
593
|
+ `hdd_total` bigint(12) NOT NULL default '3500000000',
|
|
594
|
+ `hdd_used` bigint(12) NOT NULL default '0',
|
|
595
|
+ PRIMARY KEY (`user_id`),
|
|
596
|
+ UNIQUE KEY `user_name` (`user_name`)
|
|
597
|
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;
|
|
598
|
+
|