From 5c4366a9e7ed2849322d840a246f91fce9248724 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 20 Dec 2025 21:30:09 +0000 Subject: [PATCH] Add timestamps to Movie model Co-authored-by: mathieumoran1 --- models/Movie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Movie.js b/models/Movie.js index 010246d..9a81bdf 100644 --- a/models/Movie.js +++ b/models/Movie.js @@ -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);