sails-hook-blacksails
Version:
A Sails Micro-app architecture framework
42 lines (39 loc) • 787 B
JavaScript
module.exports = {
attributes: {
authority: {
type: Sequelize.STRING(45),
allowNull: false,
unique: true,
},
title: {
type: Sequelize.STRING(127),
allowNull: true,
},
description: {
type: Sequelize.STRING(767),
allowNull: true,
},
},
associations() {},
options: {
"paranoid": false,
"timestamps": true,
classMethods: {
...sails.config.models.classMethod['Group'],
associations() {
return {
"belongsTo": [],
"hasMany": [],
"hasOne": [],
"belongsToMany": []
};
},
},
instanceMethods: {
...sails.config.models.instanceMethod['Group'],
},
hooks: {
...sails.config.models.hook['Group'],
},
},
};