added multiple club feature

This commit is contained in:
jslightham
2020-06-10 20:25:13 -04:00
parent 3a03688e6a
commit 7e9e0ced4f
12 changed files with 480 additions and 111 deletions

View File

@@ -0,0 +1,13 @@
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
let CInfo = new Schema({
user: { type: String, required: true },
clubname: { type: String, required: true },
dates: {type: Array, required: false}
},{
collection: 'cinfo'
}
);
module.exports = mongoose.model('Club', CInfo);