package com.hotwj.platform.pay.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 会员钱包流水对象 pay_wallet_transaction
 *
 * @author shihongwei
 * @date 2026-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("pay_wallet_transaction")
public class PayWalletTransaction extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 钱包 id
     */
    private Long walletId;

    /**
     * 关联类型
     */
    private Long bizType;

    /**
     * 关联业务编号
     */
    private String bizId;

    /**
     * 流水号
     */
    private String no;

    /**
     * 流水标题
     */
    private String title;

    /**
     * 交易金额
     */
    private BigDecimal price;

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

    /**
     * 0=正常, 1=已删除
     */
    @TableLogic
    private Long isDeleted;

    /**
     * 备注
     */
    private String remark;
}
