-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.sql
More file actions
28 lines (24 loc) · 1.2 KB
/
database.sql
File metadata and controls
28 lines (24 loc) · 1.2 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
create database joblister;
create table categories(
id INT(11) not null PRIMARY KEY AUTO_INCREMENT,
name varchar(255) not null
);
create table jobs(
id INT(11) not null PRIMARY KEY AUTO_INCREMENT,
category_id INT(11) not null,
company varchar(255) not null,
job_title varchar(255) not null,
description varchar(255) not null,
salary varchar(255) not null,
location varchar(255) not null,
contact_user varchar(255) not null,
contact_email varchar(255) not null,
post_date timestamp not null DEFAULT CURRENT_TIMESTAMP
);
--
-- Dumping data for table `jobs`
--
INSERT INTO `jobs` (`id`, `category_id`, `company`, `job_title`, `description`, `salary`, `location`, `contact_user`, `contact_email`, `post_date`) VALUES
(1, 1, 'JP Mortgage', 'Senior Investor', 'asdlkj asjd lkasjdlkjsa lkdjaskldj akls', '90K', 'Boston', 'Ran Ran', 'ran@gmail.com', '2019-02-23 15:28:31'),
(2, 2, 'Tech Guy', 'Entry Level Programmer', 'Asdj asd kjasdlk jaslk jaslkjdas asd jaskldj lkasjdlasjd lkasjdl ;k', '50K', 'Springfield', 'John Doe', 'john@gmail.com', '2019-02-23 15:28:31');
INSERT INTO categories(name) VALUES ("computer science"), ("law"), ("management"), ("technician"), ("teaching");