-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sql
More file actions
67 lines (57 loc) · 2.88 KB
/
install.sql
File metadata and controls
67 lines (57 loc) · 2.88 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
CREATE TABLE `perm` (
`userid` int(11) NOT NULL,
`domain_id` int(11) NOT NULL,
PRIMARY KEY (`userid`,`domain_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `session` (
`sid` char(32) collate utf8_unicode_ci NOT NULL,
`data` text collate utf8_unicode_ci NOT NULL,
`lastchange` datetime NOT NULL,
PRIMARY KEY (`sid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `template_newrecord` (
`key` varchar(255) collate utf8_unicode_ci NOT NULL,
`value` text collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `template_newrecord` VALUES('ttl', '86400');
INSERT INTO `template_newrecord` VALUES('name', '');
INSERT INTO `template_newrecord` VALUES('prio', '0');
CREATE TABLE `template_newrecord_domain` (
`domain_id` int(11) NOT NULL,
`key` varchar(255) collate utf8_unicode_ci NOT NULL,
`value` text collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`domain_id`,`key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `template_records_newdomain` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) collate utf8_unicode_ci NOT NULL,
`type` varchar(255) collate utf8_unicode_ci NOT NULL,
`content` text collate utf8_unicode_ci NOT NULL,
`ttl` int(11) NOT NULL,
`prio` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
INSERT INTO `template_records_newdomain` (`id`, `name`, `type`, `content`, `ttl`, `prio`) VALUES(2, '', 'MX', 'mail.[DOMAIN]', 300, 0);
INSERT INTO `template_records_newdomain` (`id`, `name`, `type`, `content`, `ttl`, `prio`) VALUES(3, 'mail', 'CNAME', '[DOMAIN]', 300, 0);
INSERT INTO `template_records_newdomain` (`id`, `name`, `type`, `content`, `ttl`, `prio`) VALUES(4, '', 'SOA', 'dns.[DOMAIN]. hostmaster.[DOMAIN]. 1 86400 86400 604800 300', 300, 0);
CREATE TABLE `user` (
`id` int(11) NOT NULL auto_increment,
`username` varchar(255) collate utf8_unicode_ci NOT NULL,
`password` char(32) collate utf8_unicode_ci NOT NULL,
`isAdmin` tinyint(4) NOT NULL,
`canCreateDomain` tinyint(4) NOT NULL,
`lastLogin` datetime NOT NULL,
`lastIp` text collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=10 ;
INSERT INTO `user` VALUES(1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 1, 1, '0000-00-00 00:00:00', '');
CREATE TABLE `actionlog` (
`id` int(11) NOT NULL auto_increment,
`date` datetime NOT NULL,
`username` varchar(200) collate utf8_unicode_ci NOT NULL,
`facility` text collate utf8_unicode_ci NOT NULL,
`msg` text collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
ALTER TABLE `supermasters` ADD `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST ;