package com.it.rattan.monisuo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 资金账户实体类
 */
@Data
@TableName("account_fund")
public class AccountFund implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户ID */
    private Long userId;

    /** USDT余额 */
    private BigDecimal balance;

    /** 冻结金额 */
    private BigDecimal frozen;

    /** 累计充值 */
    private BigDecimal totalDeposit;

    /** 累计提现 */
    private BigDecimal totalWithdraw;

    /** 创建时间 */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /** 更新时间 */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
