{"size": 499, "ext": "js", "max_stars_repo_path": "models/users.js", "max_stars_repo_name": "rolandeke/employee_handbook_web", "max_stars_repo_stars_event_min_datetime": "2020-10-25T04:30:47.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-23T16:43:32.000Z", "max_issues_repo_path": "models/users.js", "max_issues_repo_name": "rolandeke/employee_handbook_web", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "models/users.js", "max_forks_repo_name": "rolandeke/employee_handbook_web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.6818181818, "max_line_length": 68, "alphanum_fraction": 0.5971943888}
const mongoose = require('mongoose')

const UserSchema = new mongoose.Schema({
    firstname:{
        type: String,
        required:true,
    },
    lastname: {
        type:String,
        required:[true,'Lastname cannot be empty']

    },
    username:{
        type: String,
        required:true,
        minlength:6
    },
    email: { type:String, required:[true,'Email cannot be empty'] },
    password: { type:String, required:true }
})

module.exports = mongoose.model("Users",UserSchema)