WIP Metadata class.

This commit is contained in:
Ahmed Bouhuolia
2019-09-08 02:41:46 +02:00
parent 70809cb05c
commit 9a8de9ca7d
29 changed files with 1707 additions and 98 deletions

View File

@@ -0,0 +1,23 @@
import bookshelf from './bookshelf';
const AccountBalance = bookshelf.Model.extend({
/**
* Table name
*/
tableName: 'account_balance',
/**
* Timestamp columns.
*/
hasTimestamps: false,
/**
*
*/
account() {
return this.belongsTo('Account', 'account_id');
},
});
export default bookshelf.model('AccountBalance', AccountBalance);