{"size": 445, "ext": "js", "max_stars_repo_path": "api/database/user_model.js", "max_stars_repo_name": "CS5331-1718-G3/rest-api-development", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "api/database/user_model.js", "max_issues_repo_name": "CS5331-1718-G3/rest-api-development", "max_issues_repo_issues_event_min_datetime": "2018-03-01T14:31:19.000Z", "max_issues_repo_issues_event_max_datetime": "2018-03-03T21:00:21.000Z", "max_forks_repo_path": "api/database/user_model.js", "max_forks_repo_name": "CS5331-1718-G3/rest-api-development", "max_forks_repo_forks_event_min_datetime": "2018-10-14T15:59:09.000Z", "max_forks_repo_forks_event_max_datetime": "2018-10-14T15:59:09.000Z"}
{"max_stars_count": null, "max_issues_count": 21, "max_forks_count": 1, "avg_line_length": 24.7222222222, "max_line_length": 48, "alphanum_fraction": 0.6471910112}
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const UserSchema = new Schema(
  {
    username: { type: String, required: true },
    password: { type: String, required: true },
    fullname: { type: String, required: true },
    age: { type: Number, required: true },
    token: { type: String, required: false },
  },
  { versionKey: false }
);

const User = mongoose.model('User', UserSchema);

module.exports = User;
