package com.zsElectric.boot.business.model.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.zsElectric.boot.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;

/**
 * 个人账户实体对象
 *
 * @author zsElectric
 * @since 2025-12-12 10:20
 */
@Getter
@Setter
@TableName("c_user_account")
public class UserAccount extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编号
     */
    private Long userId;
    /**
     * 可用抵用券余额
     */
    private BigDecimal balance;
    /**
     * 交易码
     */
    private String tradeCode;
    /**
     * 欠款金额
     */
    private BigDecimal amountOwed;
    /**
     * 创建人
     */
    private Long createBy;
    /**
     * 更新人
     */
    private Long updateBy;
    /**
     * 逻辑删除（0-未删除 1-已删除）
     */
    @TableLogic
    private Integer isDeleted;
}
