Update: Add default values

This commit is contained in:
Yûki VACHOT 2021-12-10 18:20:11 +01:00
parent 924b06816c
commit 03bb63c861

View file

@ -3,9 +3,14 @@ module.exports = mongoose => {
userId: String, userId: String,
videoId: String, videoId: String,
source: String, source: String,
tags: Array, interest: {
interest: String, type: Array,
watchedDates: Array default: null
},
watchedDates: {
type: Array,
default: null
}
}, },
{ timestamps: true } { timestamps: true }
); );