Built most of the user routes, and begun work on utils

This commit is contained in:
Johnathon Slightham
2021-05-04 02:12:49 -04:00
parent 1758e9c3ee
commit 289b2d1213
9 changed files with 554 additions and 21 deletions

19
session.model.js Normal file
View File

@@ -0,0 +1,19 @@
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
// Database schema for a session
let Session = new Schema({
userId: {
type: String
},
sessionId: {
type: String
},
date: {
type: Date
}
}, {
collection: 'sessions'
});
module.exports = mongoose.model('Session', Session);