serving podcasts

This commit is contained in:
Luke Berndt
2023-02-25 15:24:23 -05:00
parent 9d732b4d87
commit 52b1a32f0d
10 changed files with 145 additions and 46 deletions

21
backend/models/podcast.js Normal file
View File

@@ -0,0 +1,21 @@
var mongoose = require('mongoose');
var podcastSchema = mongoose.Schema({
title: String,
description: String,
expireTime: Date,
startTime: Date,
endTime: Date,
downloadUrl: String,
systems: [String],
numCalls: Number,
len: Number
},
{
timestamps: true
});
module.exports = mongoose.model('Podcast', podcastSchema);