package com.m2pool.lease.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

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

/**
 * <p>
 * 提现记录表
 * </p>
 *
 * @author yyb
 * @since 2025-09-10
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class LeasePayWithdrawMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 店铺ID
     */
    private Long shopId;

    /**
     * 消息ID
     */
    private String queueId;

    /**
     * 用户充值地址
     */
    private String fromAddress;

    /**
     * 提现地址(用户自定义)
     */
    private String toAddress;

    /**
     * 支付金额
     */
    private BigDecimal amount;

    /**
     * 交易hash
     */
    private String txHash;

    /**
     * 手续费
     */
    private BigDecimal serviceCharge;

    /**
     * 币种
     */
    private String toSymbol;

    /**
     * 链名称
     */
    private String toChain;


    /**
     * 币种
     */
    private String fromSymbol;

    /**
     * 链名称
     */
    private String fromChain;

    /**
     * 充值时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 0 支付失败 1 支付成功 2 支付中
     */
    private Integer status;

    /**
     * 逻辑删除字段
     */
    private Boolean del;

    /**
     * 区块高度
     */
    private Long blockHeight;

}
