lib/model.js
function applyMethods(entity, schema) {
    Object.keys(schema.methods).forEach((method) => {
        entity[method] = schema.methods[method];
    });
    return entity;
}
function applyMethods(entity, schema) {
    Object.keys(schema.methods).forEach((method) => {
        entity[method] = schema.methods[method];
    });
    return entity;
}
function applyMethods ( entity , schema ) { Object . keys ( schema . methods ) . forEach ( ( method ) => { entity [ method ] = schema . methods [ method ] ; } ) ; return entity ; }
Add custom methods declared on the Schema to the Entity Class

@param {Entity} entity Model.prototype
@param {any} schema Model Schema
@returns Model.prototype
Add custom methods declared on the Schema to the Entity Class