You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
357 B
JavaScript

import mongoose, { Schema } from "mongoose";
const Video = new Schema({
name: {type: String, requeired: true},
videoHQ: {type: String},
videoLQ: {type: String},
playlist: {type: Schema.ObjectId, ref: 'Playlist'},
artist: {type: Schema.ObjectId, ref: 'Artist'},
date: {type: Date},
});
export default mongoose.model('Video', Video);