forked from endyourif/csvimport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudent.model.js
47 lines (44 loc) · 907 Bytes
/
student.model.js
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
var mongoose = require('mongoose');
var studentSchema = mongoose.Schema({
_id: {
type: Number,
required: true
// unique: true
},
name: {
type: String,
required: true
},
major: String,
personal_statement: String,
head_shot: String,
pillar:{
semester_joined: String,
semester_left: String,
title: String
},
positions: [String],
emails: [String],
phone: String,
profile_links:{
linkedin_url: String,
twitter: String,
resume_link: String,
github_link: String,
personal_website: String,
facebook: String
},
isAlumni: Boolean,
isHired: Boolean,
isGraduating: Boolean,
current_employment: {
employer: String,
job_title: String
},
isPlaced: Boolean,
PlacedAt: String,
skills: [String],
project_assignments: [String]
});
var Student = mongoose.model('Student', studentSchema);
module.exports = Student;