-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_kernel.sql
204 lines (173 loc) · 7.77 KB
/
dot_kernel.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
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: May 07, 2014 at 01:57 AM
-- Server version: 5.5.23
-- PHP Version: 5.5.12
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `dot_kernel`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE IF NOT EXISTS `admin` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(150) NOT NULL,
`password` varchar(255) NOT NULL,
`email` varchar(150) NOT NULL,
`firstName` varchar(150) NOT NULL,
`lastName` varchar(150) NOT NULL,
`dateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`isActive` enum('0','1') NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `username`, `password`, `email`, `firstName`, `lastName`, `dateCreated`, `isActive`) VALUES
(1, 'admin', '$2y$10$kC0ztOWgfx4i6e/6NeLvOejOMFhdv4tWVuhwfqmnEB0qMRkpmSivC', '[email protected]', 'Default', 'Account', '2010-03-15 03:05:43', '1');
-- --------------------------------------------------------
--
-- Table structure for table `adminLogin`
--
CREATE TABLE IF NOT EXISTS `adminLogin` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(16) NOT NULL,
`adminId` int(11) unsigned NOT NULL,
`referer` text NOT NULL,
`userAgent` text NOT NULL,
`dateLogin` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `adminId` (`adminId`),
CONSTRAINT `fk_adminLogin_admin` FOREIGN KEY (`adminId`) REFERENCES `admin` (`id`)
ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `statisticVisit`
--
CREATE TABLE IF NOT EXISTS `statisticVisit` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(16) NOT NULL,
`proxyIp` varchar(150) NOT NULL,
`carrier` varchar(150) NOT NULL,
`country` varchar(150) NOT NULL,
`accept` text NOT NULL,
`acceptLanguage` text NOT NULL,
`acceptEncoding` text NOT NULL,
`acceptCharset` text NOT NULL,
`userAgent` text NOT NULL,
`cacheControl` text NOT NULL,
`cookie` text NOT NULL,
`xWapProfile` text NOT NULL,
`xForwardedFor` text NOT NULL,
`xForwardedHost` text NOT NULL,
`xForwardedServer` text NOT NULL,
`referer` text NOT NULL,
`dateHit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `statisticVisitMobile`
--
CREATE TABLE IF NOT EXISTS `statisticVisitMobile` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`visitId` int(11) unsigned NOT NULL,
`fallBack` varchar(100) NOT NULL,
`brandName` varchar(100) NOT NULL,
`modelName` varchar(100) NOT NULL,
`browserName` varchar(100) NOT NULL,
`browserVersion` varchar(100) NOT NULL,
`deviceOs` varchar(100) NOT NULL,
`deviceOsVersion` varchar(100) NOT NULL,
`screenWidth` int(6) NOT NULL,
`screenHeight` int(6) NOT NULL,
`isTablet` enum('0','1') NOT NULL DEFAULT '0',
`isMobile` enum('0','1') NOT NULL DEFAULT '0',
`isSmartphone` enum('0','1') NOT NULL DEFAULT '0',
`isIphone` enum('0','1') NOT NULL DEFAULT '0',
`isAndroid` enum('0','1') NOT NULL DEFAULT '0',
`isBlackberry` enum('0','1') NOT NULL DEFAULT '0',
`isSymbian` enum('0','1') NOT NULL DEFAULT '0',
`isWindowsMobile` enum('0','1') NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `visitId` (`visitId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- RELATIONS FOR TABLE `statisticVisitMobile`:
-- `visitId`
-- `statisticvisit` -> `id`
--
-- Constraints for table `statisticVisitMobile`
--
ALTER TABLE `statisticVisitMobile`
ADD CONSTRAINT `statisticVisitMobile_ibfk_1` FOREIGN KEY (`visitId`) REFERENCES `statisticVisit` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
-- --------------------------------------------------------
--
-- Table structure for table `setting`
--
CREATE TABLE IF NOT EXISTS `setting` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`key` varchar(150) NOT NULL,
`value` text NOT NULL,
`title` text NOT NULL,
`comment` text NOT NULL,
`isEditable` enum('1','0') NOT NULL DEFAULT '0',
`type` enum('radio','option','textarea') NOT NULL DEFAULT 'textarea',
`possibleValues` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `key` (`key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=10 ;
--
-- Dumping data for table `setting`
--
INSERT INTO `setting` (`id`, `key`, `value`, `title`, `comment`, `isEditable`, `type`, `possibleValues`) VALUES
(1, 'siteEmail', '[email protected]', 'Site Email Address', 'The email address that recieves all contact emails from the site.\r\nAlso used as Sender Email for ''forgot password''.', '1', 'textarea', ''),
(2, 'devEmails', '[email protected]', 'Developer Emails', 'developer emails, for debug purpose, separated by comma', '0', 'textarea', ''),
(3, 'timeFormatShort', '%d %b %Y', 'Short Date/Time Format.', '%d - day of the month as a decimal number (range 01 to 31) %b - abbreviated month name according to the current locale %B - full month name according to the current locale %m - month as a decimal number (range 01 to 12) %y - year as a decimal number without a century (range 00 to 99) %Y - year as a decimal number including the century', '1', 'option', '%d %b %Y;%d %B %Y;%d %B %y;%d %m %Y;%d %m %y;%B %d, %Y;%b %d, %Y'),
(4, 'timeFormatLong', '%b %d, %Y, %H:%M', 'Long Date/Time Format.', 'Date/time format, including hours, minutes and seconds', '1', 'option', '%d %b %Y, %H:%M;%d %B %Y, %H:%M;%d %B %y, %H:%M;%d %m %Y, %H:%M;%d %m %y, %H:%M;%B %d, %Y, %H:%M;%b %d, %Y, %H:%M'),
(7, 'resultsPerPage', '5', 'Default results per page', 'How many records will be on every page, if is not specified otherwise by a specific configuration value', '1', 'option', '5;10;20;30;40;50'),
(8, 'whoisUrl', 'http://whois.domaintools.com', '', 'Whois lookup and Domain name search', '0', 'textarea', ''),
(9, 'paginationStep', '3', 'Pagination Step', 'The maximum number of pages that are shown on either side of the current page in the pagination header.', '1', 'option', '3;4;5;6;7;8;9;10');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(150) NOT NULL,
`password` varchar(255) NOT NULL,
`email` varchar(150) NOT NULL,
`firstName` varchar(150) NOT NULL,
`lastName` varchar(150) NOT NULL,
`dateCreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`isActive` enum('0','1') NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `userLogin`
--
CREATE TABLE IF NOT EXISTS `userLogin` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(16) NOT NULL,
`country` varchar(150) NOT NULL,
`userId` int(11) unsigned NOT NULL,
`referer` text NOT NULL,
`userAgent` text NOT NULL,
`dateLogin` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `adminId` (`userId`),
CONSTRAINT `fk_userLogin_user` FOREIGN KEY (`userId`) REFERENCES `user` (`id`)
ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;