import { DataState,FieldInfo } from 'model-util-base'
/**
 * @author auto generate
 * @version 1.0
 * @date 2021-05-20 16:51
 */
export interface CrCouponConfigDetail{
    /**
    * 
    * @type { string }
    */
    uuid?: string;
    /**
    * 
    * @type { string }
    */
    cccId?: string;
    /**
    * 
    * @type { string }
    */
    couponCfgId?: string;
    /**
    * 优惠券名称
    * @type { string }
    */
    couponName?: string;
    /**
    * 优惠券数目
    * @type { number }
    */
    couponCount?: number;
    /**
    * 折扣
    * @type { number }
    */
    discount?: number;
    /**
    * 最高折扣金额(分)
    * @type { number }
    */
    maxDiscountAmount?: number;
    /**
    * 优惠券有效期（单位：天）
    * @type { number }
    */
    expire?: number;
    /**
    * 
    * @type { Date }
    */
    createTime?: Date;
    /**
    * 
    * @type { string }
    */
    creator?: string;
    /**
    * 
    * @type { Date }
    */
    updateTime?: Date;
    /**
    * 
    * @type { string }
    */
    updator?: string;
}
export class CrCouponConfigDetailMI{ 
    static get UUID(): FieldInfo{  
        return new FieldInfo('uuid','');
    }
    static get CCC_ID(): FieldInfo{  
        return new FieldInfo('cccId','');
    }
    static get COUPON_CFG_ID(): FieldInfo{  
        return new FieldInfo('couponCfgId','');
    }
    static get COUPON_NAME(): FieldInfo{  
        return new FieldInfo('couponName','优惠券名称');
    }
    static get COUPON_COUNT(): FieldInfo{  
        return new FieldInfo('couponCount','优惠券数目');
    }
    static get DISCOUNT(): FieldInfo{  
        return new FieldInfo('discount','折扣');
    }
    static get MAX_DISCOUNT_AMOUNT(): FieldInfo{  
        return new FieldInfo('maxDiscountAmount','最高折扣金额(分)');
    }
    static get EXPIRE(): FieldInfo{  
        return new FieldInfo('expire','优惠券有效期（单位：天）');
    }
    static get CREATE_TIME(): FieldInfo{  
        return new FieldInfo('createTime','');
    }
    static get CREATOR(): FieldInfo{  
        return new FieldInfo('creator','');
    }
    static get UPDATE_TIME(): FieldInfo{  
        return new FieldInfo('updateTime','');
    }
    static get UPDATOR(): FieldInfo{  
        return new FieldInfo('updator','');
    }
}


/**
 * @author auto generate
 * @version 1.0
 * @date 2021-05-20 16:51
 */
export interface CrCouponConfig{
    /**
    * 
    * @type { string }
    */
    uuid?: string;
    /**
    * 广告id
    * @type { string }
    */
    adInfoId?: string;
    /**
    * 成交类型
    * @type { number }
    */
    actionType?: number;
    /**
    * 
    * @type { boolean }
    */
    delFlag?: boolean;
    /**
    * 
    * @type { Date }
    */
    createTime?: Date;
    /**
    * 
    * @type { string }
    */
    creator?: string;
    /**
    * 
    * @type { Date }
    */
    updateTime?: Date;
    /**
    * 
    * @type { string }
    */
    updator?: string;
    /**
    * 子表 CrCouponConfigDetail 
    * @type { CrCouponConfigDetail[] }
    */
    crCouponConfigDetail?:CrCouponConfigDetail[];

    /**
    * 数据状态 
    * @type { DataState }
    */
    _state?: DataState;
}
export class CrCouponConfigMI{ 
    static get UUID(): FieldInfo{  
        return new FieldInfo('uuid','');
    }
    static get AD_INFO_ID(): FieldInfo{  
        return new FieldInfo('adInfoId','广告id');
    }
    static get ACTION_TYPE(): FieldInfo{  
        return new FieldInfo('actionType','成交类型');
    }
    static get DEL_FLAG(): FieldInfo{  
        return new FieldInfo('delFlag','');
    }
    static get CREATE_TIME(): FieldInfo{  
        return new FieldInfo('createTime','');
    }
    static get CREATOR(): FieldInfo{  
        return new FieldInfo('creator','');
    }
    static get UPDATE_TIME(): FieldInfo{  
        return new FieldInfo('updateTime','');
    }
    static get UPDATOR(): FieldInfo{  
        return new FieldInfo('updator','');
    }
}


