-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sql
More file actions
40 lines (36 loc) · 1.14 KB
/
init.sql
File metadata and controls
40 lines (36 loc) · 1.14 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
CREATE TABLE users (
id VARCHAR(70),
PRIMARY KEY (id)
);
CREATE TABLE resume (
user_id VARCHAR(70),
json VARCHAR(25000),
PRIMARY KEY (user_id)
);
CREATE TABLE job (
id VARCHAR(25),
title VARCHAR(128),
category VARCHAR CHECK (category IN ('Design','Programming','Customer Support','Copywriting','DevOps & Sysadmin','Sales & Marketing','Business & Management','Finance & Legal','Product','Administrative','Education','Translation & Transacription','Medial/Health','Other')),
type VARCHAR CHECK (type IN ('Full-time','Internship','Project')),
apply_link VARCHAR(256),
description VARCHAR(1000),
created_at TIMESTAMP,
location VARCHAR(64),
approved BOOLEAN,
PRIMARY KEY (id)
);
CREATE TABLE company (
id VARCHAR(25),
name VARCHAR(128),
statement VARCHAR(256),
website VARCHAR(256),
email VARCHAR(70),
description VARCHAR(256),
created_at TIMESTAMP,
PRIMARY KEY (id)
);
CREATE TABLE job_company (
job_id VARCHAR(70),
company_id VARCHAR(25),
PRIMARY KEY (job_id, company_id)
);