package cn.pluss.platform.entity;

import cn.pluss.platform.vo.CashStatusVO;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 用户推广费率对照表
 * @author lyf
 */
@Data
@TableName("tb_pluss_user_promotion")
public class UserPromotion {
    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "type_code")
    private String typeCode;

    @TableField(value = "current_fee")
    private String currentFee;

    @TableField(value = "parent_user_id")
    private String parentUserId;


    @TableField(value = "create_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value = "is_extend")
    private String isExtend;

    @TableField(value = "update_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private List<CashStatusVO> cashStatusVOList;

    @TableField(exist = false)
    private String loginName;

}
