Add timestamps to Movie model

Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
Cursor Agent
2025-12-20 21:30:09 +00:00
co-authored by mathieumoran1
parent eaf7904940
commit 5c4366a9e7
+1 -1
View File
@@ -9,6 +9,6 @@ const movieSchema = new mongoose.Schema({
category: { type: String, required: true },
vod_link: { type: String, required: true },
watchedBy: [{ type: mongoose.Schema.Types.ObjectId, ref: 'User' }]
});
}, { timestamps: true });
module.exports = mongoose.model("Movie", movieSchema);