Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const cvSchema = new Schema({
- title: String,
- personalData: [{
- title: String,
- description: String
- }],
- academicData: [{
- title: String,
- description: String
- }],
- professionalData: [{
- title: String,
- description: String
- }],
- offTopic: [{
- title: String,
- description: String
- }],
- skills: [{
- description: String,
- progress: {type: Number, default: 0}
- }]
- });
- module.exports = mongoose.model('cv', cvSchema);
- function saveCv(req, res){
- var params = req.body
- var cv = new Cv();
- cv.title = params.title;
- cv.save((err, cv) => {
- if (err) { return res.send({message: err}); }
- return res.send({cv: cv});
- });
- }
Add Comment
Please, Sign In to add comment