identity
Version:
Identity client
13 lines (10 loc) • 360 B
JavaScript
module.exports = function(){
this.attribute('id', Number, {primary: true});
this.attribute('role', String);
this.attribute('owner_id', Number);
this.attribute('owner_type', String);
this.attribute('values', Object);
this.attribute('group_id', Number);
this.attribute('group_name', String);
this.belongsTo('member', {polymorph: true});
};