header = 'Bearer ' + token
Skill: {
name: { type:String, required: true },
level: { type:String ,required: true }
};
Exp: {
startAt: { type: Date, default: Date.now },
endAt: { type: Date, default: Date.now },
company: { type:String ,required: true },
position: { type:String ,required: true }
};
Edu: {
startAt: { type: Date, default: Date.now },
endAt: { type: Date, default: Date.now },
institution: { type:String ,required: true },
spec: { type:String ,required: true },
degree: { type:String ,required: true }
};
Lang: {
name: { type: String, required: true },
level: { type: String, required: true}
};
User: {
email: { type: String, required: true},
password: { type: String },
firstName: { type: String },
lastName: { type: String },
gender: { type:String },
marital: { type:String },
tel: { type: String },
skype: { type: String },
address: { type: String },
dateOfBirth: { type: Date },
objective: { type: String },
skills: [SkillSchema],
experience: [ExpSchema],
education: [EduSchema],
languages: [LangSchema],
createdAt: { type: Date, default: Date.now },
updatedAt: { type: Date, default: Date.now }
};