This repository was archived by the owner on May 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdatastructure.js
More file actions
117 lines (109 loc) · 2.52 KB
/
datastructure.js
File metadata and controls
117 lines (109 loc) · 2.52 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
// Accepted Employer Profile Schema
```{
name: string, *
location: string, *
about: string, *
contact_info: {
phone: string, *
email: string *
},
social_media: {
linkedIn: string,*
github: string *
},
website: string *
}```
##### Accepted Seeker Profile Schema
```{
first_name: string, *
last_name: string, *
position: string, *
location: string, *
bio: string, *
contact_info: {
phone_number: string, *
email: string
}, *
interests: [array of interests],
// past_experience: [ array of:
// {
// name: string,
// title: string,
// description: string
// }
// ],
education: [ *
{
school: string,
certificate: string
}
],
skills: [array of skills],
// references: [ array of:
// {
// name: string,
// relationship: string,
// phone: string,
// email: string
// }
// ],
social_media: {
linkedIn: string, *
github: string *
},
portfolio: string, *
resume: string, ////
projects: [array of urls], ///
niche: integer(references niche id),
=> seen: [array of job ids that have been seen by user], <-
timestamp: string
}```
#### Niche Schema
```{
id: integer,
niche: string
}```
#### Accepted Job Schema
```{
job_title: string, **
start_date: string, **
job_type: string(part-time, full-time, seasonal), **
pay_type: string, //
starting_pay: string, **
education: string, //
description: string, **
responsibilities: string,
required_skills: string, **
=> appliers: [array of seeker user_ids that have said yes],
=> confirmed: [array of seeker user_ids that are confirmed by employer],
niche: integer(references niche id),
seen: boolean,
}```
=> #### Returned Schema for `/jobs/matches/employer`
```{
job: {
title: job_title,
id: job id
},
usersAvailable: [ Array of:
{ User(s) that expressed interest in job
user_id: user_id,
first_name: user's first_name,
last_name: user's last_name,
position: user's position,
location: user's location
}
],
usersConfirmed: [ Array of:
{ User(s) the company has approved
user_id: user_id,
first_name: user's first_name,
last_name: user's last_name,
position: user's position,
location: user's location
}
]
}```
*/
// TO DO ENDPOINTS