Guest User

Untitled

a guest
Jun 24th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. var mongoose = require('mongoose')
  2.  
  3. var Schema = mongoose.Schema
  4.  
  5. var lecturerSchema = new Schema ({
  6. name: String,
  7. username: String,
  8. kk: String,
  9. kk_initial: String,
  10. img_url: String,
  11. oldpass: String,
  12. newpass: String,
  13. last_login: Date,
  14. notif_seen: Boolean,
  15. passwordreset_link: String,
  16. std_limit: Number,
  17. candidates: [],
  18. students: [],
  19. notifs: [],
  20. educations: {}
  21. })
  22. module.exports = mongoose.model('Lecturer', lecturerSchema)
Add Comment
Please, Sign In to add comment