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,
|
||||
videoId: String,
|
||||
source: String,
|
||||
tags: Array,
|
||||
interest: String,
|
||||
watchedDates: Array
|
||||
interest: {
|
||||
type: Array,
|
||||
default: null
|
||||
},
|
||||
watchedDates: {
|
||||
type: Array,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
{ timestamps: true }
|
||||
);
|
||||
|
|
|
|||
Reference in a new issue