sails-hook-blacksails
Version:
A Sails Micro-app architecture framework
46 lines (42 loc) • 830 B
JavaScript
module.exports = {
attributes: {
name: {
type: Sequelize.STRING(45),
allowNull: true,
},
value: {
type: Sequelize.STRING(45),
allowNull: true,
},
comment: {
type: Sequelize.STRING(45),
allowNull: true,
},
model: {
type: Sequelize.STRING(45),
allowNull: true,
},
},
associations() {},
options: {
"paranoid": false,
"timestamps": true,
classMethods: {
...sails.config.models.classMethod['Enum'],
associations() {
return {
"belongsTo": [],
"hasMany": [],
"hasOne": [],
"belongsToMany": []
};
},
},
instanceMethods: {
...sails.config.models.instanceMethod['Enum'],
},
hooks: {
...sails.config.models.hook['Enum'],
},
},
};