sails-permissions-sequelize
Version:
Sequelize version of : Comprehensive user permissions and entitlements system for sails.js and Waterline. Supports user authentication with passport.js, role-based permissioning, object ownership, and row-level security.
29 lines (26 loc) • 661 B
JavaScript
/**
* SecurityLog.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*/
module.exports = {
autoPK: false,
autoUpdatedAt: false,
autoCreatedAt: false,
attributes: {
// request: {
// model: 'RequestLog',
// primaryKey: true
// }
},
associate: function(){
SecurityLog.hasOne(RequestLog, {as: 'request'});
},
options: {
tableName: 'securitylog',
classMethods: {},
instanceMethods: {},
hooks: {}
}
};