It seems that it is not supported due to the box from Waterline. See the GitHub issue .
One of the comments in the above issue is also related to the YouTube password video ( here ). In a nutshell, the video is viewed using lodash to merge a child model with a base model, for example:
baseModel.js
module.exports = {
attributes : {
name : 'STRING',
age : 'INTEGER'
},
foo : function () {}
}
childModel.js
var baseModel = require('/path/to/baseModel')
, _ = require('lodash')
module.exports = _.merge(baseModel, {
attributes : {
birthDate : 'DATE',
...
}
})
source
share