Skip to content
Snippets Groups Projects

Release 0.1: Authentication & Session

Merged Martin Lehoux requested to merge release-0.1 into master
5 files
+ 129
0
Compare changes
  • Side-by-side
  • Inline

Files

const mongoose = require('mongoose');
const User = new mongoose.Schema({
firstName: {
type: String,
required: true,
},
lastName: {
type: String,
},
username: {
unique: true,
type: String,
lowercase: true
},
email: {
type: String,
required: true,
},
passwordHash: {
type: String,
},
});
module.exports = mongoose.model('User', User);
\ No newline at end of file
Loading