-
Notifications
You must be signed in to change notification settings - Fork 0
/
00_setup_tables.sql
87 lines (71 loc) · 2.74 KB
/
00_setup_tables.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
-- tables for storing Norwegian (bokmål) translations of Labor Market Information from onetonline.org
-- store in same database as downloaded data from onetonline.org
USE onet ;
-- Provide O*NET Content Model elements.
-- https://www.onetcenter.org/dictionary/28.3/mysql/content_model_reference.html
DROP TABLE IF EXISTS content_model_reference_nb ;
CREATE TABLE content_model_reference_nb (
element_id char(16) NOT NULL COMMENT 'ID',
onettype varchar(16) NOT NULL COMMENT 'innholdstype strengen er henta fra',
element_name varchar(128) NOT NULL,
element_name_nb varchar(128) DEFAULT NULL,
description varchar(512) NOT NULL,
description_nb varchar(512) DEFAULT NULL,
changed date NOT NULL COMMENT 'dato siste endring',
PRIMARY KEY (element_id)
) COMMENT='O*Net online content_model_reference translated to Norwegian (bokmål)'
;
-- Provide each Detailed Work Activity.
-- https://www.onetcenter.org/dictionary/28.3/mysql/dwa_reference.html
DROP TABLE IF EXISTS dwa_reference_nb ;
CREATE TABLE dwa_reference_nb (
element_id varchar(20) DEFAULT NULL,
iwa_id varchar(20) DEFAULT NULL,
dwa_id varchar(20) NOT NULL,
dwa_title varchar(128) DEFAULT NULL,
dwa_title_nb varchar(128) DEFAULT NULL,
changed date NOT NULL,
PRIMARY KEY (dwa_id),
KEY iwa_id (iwa_id),
KEY element_id (element_id),
KEY dwa_title_NO (dwa_title_nb),
KEY dwa_title (dwa_title)
) COMMENT='O*Net online dwa_reference translated to Norwegian (bokmål)'
;
-- Provide each Intermediate Work Activity.
-- https://www.onetcenter.org/dictionary/28.3/mysql/iwa_reference.html
DROP TABLE IF EXISTS iwa_reference_nb ;
CREATE TABLE iwa_reference_nb (
element_id varchar(20) DEFAULT NULL,
iwa_id varchar(20) NOT NULL,
iwa_title varchar(128) DEFAULT NULL,
iwa_title_nb varchar(128) DEFAULT NULL,
changed date NOT NULL,
PRIMARY KEY (iwa_id),
KEY element_id (element_id),
KEY iwa_title (iwa_title),
KEY iwa_title_nb (iwa_title_nb)
) COMMENT='O*Net online iwa_reference translated to Norwegian (bokmål)'
;
-- Provide O*NET-SOC codes, titles, and descriptions.
-- https://www.onetcenter.org/dictionary/28.3/mysql/occupation_data.html
DROP TABLE IF EXISTS occupation_data_nb ;
CREATE TABLE occupation_data_nb (
onetsoc_code varchar(10) NOT NULL,
title varchar(128) NOT NULL,
title_nb varchar(128) DEFAULT NULL,
description varchar(1024) NOT NULL,
description_nb varchar(1024) DEFAULT NULL,
changed date NOT NULL,
PRIMARY KEY (onetsoc_code),
KEY title (title),
KEY title_nb (title_nb)
) COMMENT='O*Net online occupation_data translated to Norwegian (bokmål)'
;
DROP TABLE IF EXISTS onet_uno_category_nb ;
CREATE TABLE onet_uno_category_nb (
element_id varchar(16) NOT NULL,
onet_uno_category_nb varchar(255) NOT NULL,
PRIMARY KEY (element_id)
) COMMENT='categories used by Utdanning.no'
;