-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjob.js
More file actions
34 lines (30 loc) · 869 Bytes
/
job.js
File metadata and controls
34 lines (30 loc) · 869 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
var vogels = require('vogels'),
Joi = require('joi');
var Job = vogels.define('Job', {
hashKey : 'job_id',
timestamps : true,
schema : {
job_id : vogels.types.uuid(),
job_description : Joi.string().required(),
job_title: Joi.string().required(),
hq_location: Joi.string().required(),
salary: Joi.number().integer().greater(0),
salary_range_high: Joi.number().integer().greater(0),
salary_range_low: Joi.number().integer().greater(0),
currency_code: Joi.string().required(),
website_url: Joi.string().uri(),
email: Joi.string().email(),
full_time: Joi.boolean(),
required_online_from: Joi.string(),
required_online_to: Joi.string(),
timezone: Joi.string(),
},
tableName: 'work_remote_jobs'
});
module.exports = Job;
/*ideas:
hq coords, some kind of map
office photos
team photos
tech stack
*/