forked from elinoretenorio/jobskee-open-source-job-board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jobskee.sql
227 lines (185 loc) · 7.44 KB
/
jobskee.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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
-- phpMyAdmin SQL Dump
-- version 4.0.5
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1:3306
-- Generation Time: Aug 30, 2015 at 09:50 PM
-- Server version: 5.5.27
-- PHP Version: 5.5.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `jobskee`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE IF NOT EXISTS `admin` (
`id` tinyint(4) NOT NULL AUTO_INCREMENT,
`email` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `email`, `password`) VALUES
(1, 'admin@example.com', 'd033e22ae348aeb5660fc2140aec35850c4da997');
-- --------------------------------------------------------
--
-- Table structure for table `applications`
--
CREATE TABLE IF NOT EXISTS `applications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`job_id` int(11) NOT NULL,
`cover_letter` text COLLATE utf8_unicode_ci,
`full_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`location` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`websites` text COLLATE utf8_unicode_ci,
`attachment` text COLLATE utf8_unicode_ci,
`token` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`created` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `banlist`
--
CREATE TABLE IF NOT EXISTS `banlist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `blocks`
--
CREATE TABLE IF NOT EXISTS `blocks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`url` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`content` text COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `blocks`
--
INSERT INTO `blocks` (`id`, `name`, `url`, `content`) VALUES
(1, 'AddThis', 'addthis', '<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-541e6f810d78ec0c"></script>\n<div class="addthis_sharing_toolbox"></div>');
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE IF NOT EXISTS `categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`description` varchar(160) COLLATE utf8_unicode_ci DEFAULT NULL,
`url` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`sort` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `name`, `description`, `url`, `sort`) VALUES
(1, 'Programming', 'Find the best Programming jobs here!', 'programming', 1),
(2, 'Design', 'Find the best Design jobs here!', 'design', 2),
(3, 'Business', 'Find the best Business jobs here!', 'business', 3),
(4, 'IT Admin', 'Find the best IT Admin jobs here!', 'it-admin', 4),
(5, 'Content', 'Find the best Content jobs here!', 'content', 6),
(6, 'Support', 'Find the best Support jobs here!', 'support', 5);
-- --------------------------------------------------------
--
-- Table structure for table `cities`
--
CREATE TABLE IF NOT EXISTS `cities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`description` varchar(160) COLLATE utf8_unicode_ci DEFAULT NULL,
`url` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`sort` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ;
--
-- Dumping data for table `cities`
--
INSERT INTO `cities` (`id`, `name`, `description`, `url`, `sort`) VALUES
(1, 'Anywhere', 'Find the best jobs here!', 'anywhere', 1),
(2, 'Manila', 'Find the best Manila jobs here!', 'manila', 2),
(3, 'Madrid', 'Find the best Madrid jobs here!', 'madrid', 3),
(4, 'Frankfurt', 'Find the best Frankfurt jobs here!', 'frankfurt', 4),
(5, 'Beijing', 'Find the best Beijing jobs here!', 'beijing', 5),
(6, 'New York', 'Find the best New York jobs here!', 'new-york', 6);
-- --------------------------------------------------------
--
-- Table structure for table `downloads`
--
CREATE TABLE IF NOT EXISTS `downloads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`website` text COLLATE utf8_unicode_ci,
`ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
`created` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `jobs`
--
CREATE TABLE IF NOT EXISTS `jobs` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`category` tinyint(4) DEFAULT NULL,
`city` tinyint(4) DEFAULT NULL,
`description` text COLLATE utf8_unicode_ci,
`perks` text COLLATE utf8_unicode_ci,
`how_to_apply` text COLLATE utf8_unicode_ci,
`company_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`logo` text COLLATE utf8_unicode_ci,
`url` text COLLATE utf8_unicode_ci,
`email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`is_featured` tinyint(1) DEFAULT NULL,
`token` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` tinyint(3) DEFAULT NULL,
`created` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `pages`
--
CREATE TABLE IF NOT EXISTS `pages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`description` varchar(160) COLLATE utf8_unicode_ci DEFAULT NULL,
`url` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
`content` text COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=14 ;
--
-- Dumping data for table `pages`
--
INSERT INTO `pages` (`id`, `name`, `description`, `url`, `content`) VALUES
(1, 'About', 'About', 'about', 'about'),
(2, 'Contact', 'Contact us', 'contact', 'contact us'),
(3, 'Terms', 'Terms', 'terms', 'terms'),
(13, 'Conditions', 'Conditions', 'conditions', 'conditions');
-- --------------------------------------------------------
--
-- Table structure for table `subscriptions`
--
CREATE TABLE IF NOT EXISTS `subscriptions` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`category_id` tinyint(4) NOT NULL,
`city_id` tinyint(4) NOT NULL,
`token` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`last_sent` datetime DEFAULT NULL,
`is_confirmed` tinyint(4) NOT NULL DEFAULT '0',
`created` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;