mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
Permissions authorization middleware.
This commit is contained in:
@@ -18,8 +18,11 @@ const Account = bookshelf.Model.extend({
|
||||
return this.belongsTo('AccountType', 'account_type_id');
|
||||
},
|
||||
|
||||
/**
|
||||
* Account model may has many balances accounts.
|
||||
*/
|
||||
balances() {
|
||||
return this.hasMany('AccountBalance', 'accounnt_id');
|
||||
return this.hasMany('AccountBalance', 'account_id');
|
||||
},
|
||||
}, {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user