Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mongoose = require('mongoose')
- var Schema = mongoose.Schema
- var lecturerSchema = new Schema ({
- name: String,
- username: String,
- kk: String,
- kk_initial: String,
- img_url: String,
- oldpass: String,
- newpass: String,
- last_login: Date,
- notif_seen: Boolean,
- passwordreset_link: String,
- std_limit: Number,
- candidates: [],
- students: [],
- notifs: [],
- educations: {}
- })
- module.exports = mongoose.model('Lecturer', lecturerSchema)
Add Comment
Please, Sign In to add comment