package com.ruoyi.cai.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

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

/**
 * 用户账户对象 cai_account
 *
 * @author 77
 * @date 2023-12-23
 */
@Data
@TableName("cai_account")
public class Account implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 子账户ID
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 当前彩币数量
     */
    private Long coin;
    /**
     * 收益的彩币数量
     */
    private Long incomeCoin;
    /**
     * 充值总额
     */
    private BigDecimal totalBuyMoney;
    /**
     * 充值彩贝总额
     */
    private Long totalBuyCoin;
    /**
     * 账户锁定 0 正常 1 锁定
     */
    private Integer status;

    private LocalDateTime createTime;

}
