Update: Add default values
This commit is contained in:
parent
924b06816c
commit
03bb63c861
1 changed files with 8 additions and 3 deletions
|
|
@ -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 }
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Reference in a new issue