@inspire-platform/sails-hook-permissions
Version:
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.
36 lines (34 loc) • 578 B
JavaScript
/**
* RequestLog.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 = {
attributes: {
id: {
type: 'number',
autoIncrement: true
},
ipAddress: {
type: 'string'
},
method: {
type: 'string'
},
url: {
type: 'string',
isURL: true
},
body: {
type: 'json'
},
user: {
model: 'User'
},
model: {
type: 'string'
}
}
};