Basic Podcast is working

This commit is contained in:
Luke Berndt
2023-02-23 23:18:59 -05:00
parent b07d308719
commit 9d732b4d87
4 changed files with 187 additions and 17 deletions

View File

@@ -26,5 +26,19 @@ var callSchema = mongoose.Schema({
});
var frozenCallSchema = mongoose.Schema();
frozenCallSchema.add(callSchema).add({
systemName: String,
systemDescription: String,
talkgroupDescription: String,
talkgroupAlpha: String,
});
exports.frozenCallSchema = frozenCallSchema;
exports.frozenCallModel = mongoose.model('FrozenCall', frozenCallSchema);
exports.callSchema = callSchema;
exports.callModel = mongoose.model('Call', callSchema);

View File

@@ -1,6 +1,6 @@
var mongoose = require('mongoose');
var {callSchema} = require('./call');
console.log(callSchema)
var {frozenCallSchema} = require('./call');
var eventSchema = mongoose.Schema({
title: String,
@@ -10,7 +10,7 @@ var eventSchema = mongoose.Schema({
endTime: Date,
downloadUrl: String,
shortNames: [String],
calls: [callSchema],
calls: [frozenCallSchema],
numCalls: Number
},
{