Initial Push

This commit is contained in:
Johnathon Slightham
2020-12-20 22:46:29 -05:00
commit 83c4742037
18 changed files with 15201 additions and 0 deletions

35
API/post.model.js Normal file
View File

@@ -0,0 +1,35 @@
/*
NodeJS-Video-Streamer - post.model.js
*/
// Schema for a video post
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
let Post = new Schema({
title: {
type: String
},
description: {
type: String
},
comments: {
type: Array
},
transcoding: {
type: Boolean
},
progress: {
type: Number
},
eta:{
type: String
},
likes:{
type: Number
},
},{
collection: 'posts'
});
module.exports = mongoose.model('Post', Post);