{"size": 430, "ext": "js", "max_stars_repo_path": "test/db/models/user.js", "max_stars_repo_name": "betastreet/bookshelf-modelbase-plus", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/db/models/user.js", "max_issues_repo_name": "betastreet/bookshelf-modelbase-plus", "max_issues_repo_issues_event_min_datetime": "2018-08-03T18:22:47.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-15T14:34:12.000Z", "max_forks_repo_path": "test/db/models/user.js", "max_forks_repo_name": "betastreet/bookshelf-modelbase-plus", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 26.875, "max_line_length": 132, "alphanum_fraction": 0.6348837209}
'use strict';

const { ModelBase } = require('../');

module.exports = ModelBase.extend({
    tableName: 'users',
    hasTimestamps: true,
    softDelete: true,
    firstName: (qb, query) => {
      return qb.where({first_name: query.fancy});
    },
});

module.exports.columns = ['id', 'first_name', 'last_name', 'email', 'address', 'balance', 'created_at', 'updated_at', 'deleted_at'];
module.exports.compositePKey = ['email'];
