sails-hook-blacksails
Version:
A Sails Micro-app architecture framework
52 lines (47 loc) • 1 kB
JavaScript
module.exports = {
attributes: {
name: {
type: Sequelize.STRING(127),
allowNull: false,
},
key: {
type: Sequelize.STRING(127),
allowNull: false,
},
value: {
type: Sequelize.TEXT,
allowNull: false,
},
type: {
type: Sequelize.ENUM('string', 'url', 'boolean', 'array', 'object', 'text', 'number'),
allowNull: false,
defaultValue: 'text',
},
description: {
type: Sequelize.STRING(767),
allowNull: true,
},
},
associations() {},
options: {
"paranoid": true,
"timestamps": true,
classMethods: {
...sails.config.models.classMethod['Config'],
associations() {
return {
"belongsTo": [],
"hasMany": [],
"hasOne": [],
"belongsToMany": []
};
},
},
instanceMethods: {
...sails.config.models.instanceMethod['Config'],
},
hooks: {
...sails.config.models.hook['Config'],
},
},
};