some of the backend is working

This commit is contained in:
Luke Berndt
2023-01-21 22:31:38 -05:00
parent 033c3dcf5d
commit 1ab774ec8f
10 changed files with 4454 additions and 6 deletions

19
backend/models/event.js Normal file
View File

@@ -0,0 +1,19 @@
var mongoose = require('mongoose');
var {callSchema} = require('./call');
console.log(callSchema)
var groupSchema = mongoose.Schema({
title: String,
description: String,
expireTime: Number,
startTime: Number,
endTime: Number,
shortNames: [String],
calls: [callSchema]
},
{
timestamps: true
});
module.exports = mongoose.model('Event', groupSchema);