initial commit, should work

This commit is contained in:
quoije
2025-01-26 16:03:25 -05:00
commit 85ff5d08a0
27 changed files with 3066 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
const mongoose = require("mongoose");
const movieSchema = new mongoose.Schema({
imdb_id: { type: String, required: true },
title: { type: String, required: false },
description: { type: String, required: false },
rating: { type: String, required: false },
poster: { type: String, required: false },
category: { type: String, required: true },
vod_link: { type: String, required: true },
watchedBy: [{ type: mongoose.Schema.Types.ObjectId, ref: 'User' }]
});
module.exports = mongoose.model("Movie", movieSchema);