import { FieldInfo } from 'model-util-base'
import { ConditionUtil, ConditionUtilImpl, FieldUtil, TableUtilImpl, IdType, JoinTable, SubTable } from 'model-util'
import { Container, Singleton } from 'typescript-ioc' 
import { Ad_data_event_tracking_log } from '../models/index' 
/**
 * @author auto generate
 * @version 1.0
 * @date 2021-03-31 15:49
 */
interface Ad_data_event_tracking_logCU extends ConditionUtil<Ad_data_event_tracking_logCU>{
    ID:FieldUtil<Ad_data_event_tracking_logCU>;
    USER_ID:FieldUtil<Ad_data_event_tracking_logCU>;
    LOT_ID:FieldUtil<Ad_data_event_tracking_logCU>;
    PROJECT_ID:FieldUtil<Ad_data_event_tracking_logCU>;
    EVENT_ID:FieldUtil<Ad_data_event_tracking_logCU>;
    CUST01:FieldUtil<Ad_data_event_tracking_logCU>;
    CUST02:FieldUtil<Ad_data_event_tracking_logCU>;
    CUST03:FieldUtil<Ad_data_event_tracking_logCU>;
    CUST04:FieldUtil<Ad_data_event_tracking_logCU>;
    CUST05:FieldUtil<Ad_data_event_tracking_logCU>;
    AMOUNT:FieldUtil<Ad_data_event_tracking_logCU>;
    TRIGGER_TIME:FieldUtil<Ad_data_event_tracking_logCU>;
}

class Ad_data_event_tracking_logCUImpl extends ConditionUtilImpl<Ad_data_event_tracking_logCUImpl> implements Ad_data_event_tracking_logCU{ 
    newInstance(): Ad_data_event_tracking_logCUImpl {
        return new Ad_data_event_tracking_logCUImpl();
    } 
    get ID(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('ID','id','主键ID', this);
    }
    get USER_ID(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('USER_ID','userId','用户ID', this);
    }
    get LOT_ID(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('LOT_ID','lotId','车场ID', this);
    }
    get PROJECT_ID(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('PROJECT_ID','projectId','项目ID', this);
    }
    get EVENT_ID(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('EVENT_ID','eventId','事件ID', this);
    }
    get CUST01(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('CUST01','cust01','自定义参数1', this);
    }
    get CUST02(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('CUST02','cust02','自定义参数2', this);
    }
    get CUST03(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('CUST03','cust03','自定义参数3', this);
    }
    get CUST04(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('CUST04','cust04','自定义参数4', this);
    }
    get CUST05(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('CUST05','cust05','自定义参数5', this);
    }
    get AMOUNT(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('AMOUNT','amount','计算事件的统计值', this);
    }
    get TRIGGER_TIME(): FieldUtil<Ad_data_event_tracking_logCU>{  
        return new FieldUtil('TRIGGER_TIME','triggerTime','触发时间', this);
    }
}

@Singleton 
class Ad_data_event_tracking_logMU extends TableUtilImpl<Ad_data_event_tracking_logCU,Ad_data_event_tracking_log>{ 
    tableName  = 'ad_data_event_tracking_log';
    tableFields  = ['ID','USER_ID','LOT_ID','PROJECT_ID','EVENT_ID','CUST01','CUST02','CUST03','CUST04','CUST05','AMOUNT','TRIGGER_TIME'];
    modelFields  = ['id','userId','lotId','projectId','eventId','cust01','cust02','cust03','cust04','cust05','amount','triggerTime'];
    modelIdFields  = ['id'];
    tableIdFields  = ['ID'];
    idType = IdType.CUSTOM;
    joinTables = [];
    subTables = [];

    createConditionUtil(): Ad_data_event_tracking_logCU {
        return new Ad_data_event_tracking_logCUImpl();
    }   

    static get ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('ID','id','主键ID', new Ad_data_event_tracking_logCUImpl());
    }
    static get USER_ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('USER_ID','userId','用户ID', new Ad_data_event_tracking_logCUImpl());
    }
    static get LOT_ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('LOT_ID','lotId','车场ID', new Ad_data_event_tracking_logCUImpl());
    }
    static get PROJECT_ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('PROJECT_ID','projectId','项目ID', new Ad_data_event_tracking_logCUImpl());
    }
    static get EVENT_ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('EVENT_ID','eventId','事件ID', new Ad_data_event_tracking_logCUImpl());
    }
    static get CUST01(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('CUST01','cust01','自定义参数1', new Ad_data_event_tracking_logCUImpl());
    }
    static get CUST02(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('CUST02','cust02','自定义参数2', new Ad_data_event_tracking_logCUImpl());
    }
    static get CUST03(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('CUST03','cust03','自定义参数3', new Ad_data_event_tracking_logCUImpl());
    }
    static get CUST04(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('CUST04','cust04','自定义参数4', new Ad_data_event_tracking_logCUImpl());
    }
    static get CUST05(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('CUST05','cust05','自定义参数5', new Ad_data_event_tracking_logCUImpl());
    }
    static get AMOUNT(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('AMOUNT','amount','计算事件的统计值', new Ad_data_event_tracking_logCUImpl());
    }
    static get TRIGGER_TIME(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return new FieldUtil('TRIGGER_TIME','triggerTime','触发时间', new Ad_data_event_tracking_logCUImpl());
    }

    get ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.ID;
    }
    get USER_ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.USER_ID;
    }
    get LOT_ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.LOT_ID;
    }
    get PROJECT_ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.PROJECT_ID;
    }
    get EVENT_ID(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.EVENT_ID;
    }
    get CUST01(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.CUST01;
    }
    get CUST02(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.CUST02;
    }
    get CUST03(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.CUST03;
    }
    get CUST04(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.CUST04;
    }
    get CUST05(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.CUST05;
    }
    get AMOUNT(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.AMOUNT;
    }
    get TRIGGER_TIME(): FieldUtil<Ad_data_event_tracking_logCU>{ 
        return Ad_data_event_tracking_logMU.TRIGGER_TIME;
    }
}
export {Ad_data_event_tracking_logMU, Ad_data_event_tracking_logCU}
