feat: Add Oscar year to movies and admin management

Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
Cursor Agent
2025-12-20 22:14:47 +00:00
co-authored by mathieumoran1
parent da9d746928
commit eeb337fe08
5 changed files with 315 additions and 7 deletions
+2
View File
@@ -6,6 +6,8 @@ const movieSchema = new mongoose.Schema({
description: { type: String, required: false },
rating: { type: String, required: false },
poster: { type: String, required: false },
// Oscar pool year / edition (used to segment movies + stats)
year: { type: Number, required: false, index: true },
category: { type: String, required: true },
vod_link: { type: String, required: true },
watchedBy: [{ type: mongoose.Schema.Types.ObjectId, ref: 'User' }]