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

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

@Singleton 
class AdDataEventTrackingLogMU extends TableUtilImpl<AdDataEventTrackingLogCU,AdDataEventTrackingLog>{ 
    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(): AdDataEventTrackingLogCU {
        return new AdDataEventTrackingLogCUImpl();
    }   

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

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