Initial push, base application done

This commit is contained in:
Johnathon Slightham
2021-05-02 15:42:58 -04:00
parent 6534e68a59
commit 1758e9c3ee
6 changed files with 1662 additions and 0 deletions

19
user.model.js Normal file
View File

@@ -0,0 +1,19 @@
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
// Database schema for a user
let User = new Schema({
email: {
type: String
},
name: {
type: String
},
password: {
type: String
}
}, {
collection: 'users'
});
module.exports = mongoose.model('User', User);