-
Notifications
You must be signed in to change notification settings - Fork 5
/
create_tables_postgres.sql
79 lines (68 loc) · 1.7 KB
/
create_tables_postgres.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
CREATE TABLE sc1_skill_post_counters
(
skill_term character varying(140) NOT NULL,
number_of_postings integer,
CONSTRAINT pk_sc1_skill_post_counters PRIMARY KEY (skill_term)
)
WITH (
OIDS=FALSE
);
CREATE TABLE sc1_skill_pairs
(
id serial NOT NULL,
primary_term character varying(140),
secondary_term character varying(140),
number_of_times integer,
CONSTRAINT pk_sc1_skill_pairs PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
CREATE TABLE sc1_job_postings_to_skill_pairs
(
job_file_name character varying(140),
skill_pair_id integer,
job_ad_snippet character varying(1500),
CONSTRAINT pk_sc1_job_postings_to_skill_pairs PRIMARY KEY (job_file_name, skill_pair_id)
)
WITH (
OIDS=FALSE
);
-- Table: public.sc2_job_listings
CREATE TABLE public.sc2_job_listings
(
job_file_name character varying(140) NOT NULL,
date_created date,
company_name character varying(256),
job_title character varying(256),
CONSTRAINT pk_sc2_job_listings PRIMARY KEY (job_file_name)
)
WITH (
OIDS=FALSE
);
ALTER TABLE public.sc2_job_listings
OWNER TO postgres;
-- Table: public.sc2_job_hyp_company_mappings
CREATE TABLE public.sc2_job_hyp_company_mappings
(
job_file_name character varying(140) NOT NULL,
hyp_company character varying(256),
CONSTRAINT pk_sc2_job_hyp_company_mappings PRIMARY KEY (job_file_name)
)
WITH (
OIDS=FALSE
);
ALTER TABLE public.sc2_job_hyp_company_mappings
OWNER TO postgres;
-- Table: public.sc2_job_locations
CREATE TABLE public.sc2_job_locations
(
job_file_name character varying(140) NOT NULL,
location character varying(140),
CONSTRAINT pk_sc2_job_locations PRIMARY KEY (job_file_name)
)
WITH (
OIDS=FALSE
);
ALTER TABLE public.sc2_job_locations
OWNER TO postgres;