/**
 * Created by ck on 17/05/2017.
 */
let norm = require('n-orm');

class InventoryCheckClientEntity extends norm.ORMEntity {
    constructor(orm) {
        super(orm);
    }
}

Object.defineProperty(InventoryCheckClientEntity.prototype, 'tableName',
    {
        value: 'im.wh_inventory_check_client',
        enumerable: false
    });
Object.defineProperty(InventoryCheckClientEntity.prototype, 'columns', {
    value: [
        {name: 'checkId', ispk: true},
        {name: 'clientId', ispk: true}
    ],
    enumerable: false
});
Object.defineProperty(InventoryCheckClientEntity.prototype, 'relations', {
    value: [
        {
            propertyName: 'client',
            field: 'clientId',
            refColumn: 'id',
            entity: 'im.erp_client',
            relationType: 'OneToOne'
        }
    ],
    enumerable: false
});

module.exports = InventoryCheckClientEntity;