package com.ruoyi.cai.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 123对象 cai_union_user
 *
 * @author ruoyi
 * @date 2023-12-22
 */
@Data
@TableName("cai_union_user")
public class UnionUser implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 工会id
     */
    private Long unionId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 视频分成比例
     */
    private BigDecimal videoDivide;
    /**
     * 礼物分成比例
     */
    private BigDecimal giftDivide;
    /**
     * vip分成
     */
    @Deprecated
    private BigDecimal vipDivide;
    /**
     * 是否开启提成
     */
    private Boolean enableRate;
    /**
     * 收益
     */
    private Long unionEarning;
    /**
     * 是否为主动邀请
     */
    private Integer isInitiative;

    private LocalDateTime createTime;
}
