package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;

import java.math.BigDecimal;

/**
 * 用户钱包  user_wallet
 *
 * @author ruoyi
 * @date 2025-05-29
 */
@Data
@TableName(value = "user_wallet")
@EqualsAndHashCode(callSuper = false)
public class UserWallet
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @GeneratedValue
    @Excel(name = "id")
    /** id */
    private Long id;
    @Excel(name = "userId")
    /** 用户id */
    private Long userId;

    /** 积分钱包 */
    @Excel(name = "积分钱包")
    private Long pointsWallet;
    /** 余额钱包 */
    @Excel(name = "余额钱包")
    private BigDecimal balanceWallet;

    @Excel(name = "冻结金额")
    private BigDecimal blockedFunds;

    private int version;

    /** 关联摊位id，非摊位钱包为NULL */
    private Long storeId;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String userType;

}
