-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.js
More file actions
36 lines (34 loc) · 862 Bytes
/
data.js
File metadata and controls
36 lines (34 loc) · 862 Bytes
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
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const DataSchema = new Schema(
{
attributes: [{
id: Number,
message: String,
index: Number,
fulltitle: String,
title: String,
hierarchy: Number,
jobtype: String,
jobs2016: Number,
jobs2026: Number,
delta_num: Number,
delta_perc: Number,
perc_self_employed_2016: Number,
annual_avg_openings_2016_26: Number,
med_annual_wage_2017: Number,
entry_ed_req: String,
work_exp: String,
otj_training_to_competency: String,
ttl: String,
pathString: String
}],
Level0: String,
Level1: String,
Level2: String,
Level3: String,
Level4: String
}
);
// export the new Schema so we can modify it using Node.js
module.exports = mongoose.model("Data", DataSchema);