package com.seer.teach.pay.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

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

/**
 * <p>
 *  充值记录流水表
 * </p>
 *
 * @author Wang
 * @since 2025-06-17
 */
@Getter
@Setter
@TableName("pay_coin_recharge")
@Schema(name = "pay_coin_recharge对象", description = "")
public class CoinRechargeEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 充值学豆
     */
    @TableField("recharge_coin")
    private BigDecimal rechargeCoin;

    /**
     * 充值金额,通过兑换比例计算获得，充值学豆 * 兑换比例
     */
    @TableField("recharge_amount")
    private BigDecimal rechargeAmount;

    /**
     * 充值单号
     */
    @TableField("recharge_sn")
    private String rechargeSn;

    /**
     * 学豆配置ID
     */
    @TableField("coin_config_id")
    private int coinConfigId;

    /**
     * 充值时间
     */
    @TableField("recharge_time")
    private LocalDateTime rechargeTime;

    /**
     * 充值状态
     */
    @TableField("pay_status")
    private Integer payStatus;

    /**
     * 充值成功时间
     */
    @TableField("pay_success_time")
    private LocalDateTime paySuccessTime;

}