Add timestamps to Movie model
Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
co-authored by
mathieumoran1
parent
eaf7904940
commit
5c4366a9e7
+1
-1
@@ -9,6 +9,6 @@ const movieSchema = new mongoose.Schema({
|
|||||||
category: { type: String, required: true },
|
category: { type: String, required: true },
|
||||||
vod_link: { type: String, required: true },
|
vod_link: { type: String, required: true },
|
||||||
watchedBy: [{ type: mongoose.Schema.Types.ObjectId, ref: 'User' }]
|
watchedBy: [{ type: mongoose.Schema.Types.ObjectId, ref: 'User' }]
|
||||||
});
|
}, { timestamps: true });
|
||||||
|
|
||||||
module.exports = mongoose.model("Movie", movieSchema);
|
module.exports = mongoose.model("Movie", movieSchema);
|
||||||
|
|||||||
Reference in New Issue
Block a user