UNPKG

sails-hook-blacksails

Version:
42 lines (39 loc) 785 B
module.exports = { attributes: { authority: { type: Sequelize.STRING(45), allowNull: false, unique: true, }, title: { type: Sequelize.STRING(127), allowNull: false, }, description: { type: Sequelize.STRING(767), allowNull: true, }, }, associations() {}, options: { "paranoid": false, "timestamps": true, classMethods: { ...sails.config.models.classMethod['Role'], associations() { return { "belongsTo": [], "hasMany": [], "hasOne": [], "belongsToMany": [] }; }, }, instanceMethods: { ...sails.config.models.instanceMethod['Role'], }, hooks: { ...sails.config.models.hook['Role'], }, }, };