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 java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 学豆冻结记录表
 * </p>
 *
 * @author Captain
 * @since 2025-06-18
 */
@Getter
@Setter
@TableName("pay_coin_freeze_log")
@Schema(name = "FaCoinFreezeLogEntity对象", description = "学豆冻结记录表")
public class CoinFreezeLogEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "学豆账户ID")
    @TableField("account_id")
    private Long accountId;

    @Schema(description = "关联订单编号")
    @TableField("order_sn")
    private String orderSn;

    @Schema(description = "冻结金额（单位：分）")
    @TableField("freeze_amount")
    private BigDecimal freezeAmount;

    @Schema(description = "状态：0-已冻结，1-已解冻，2-已扣除")
    @TableField("`status`")
    private Integer status;

    @Schema(description = "冻结时间")
    @TableField("freeze_time")
    private LocalDateTime freezeTime;

    @Schema(description = "解冻时间")
    @TableField("unfreeze_time")
    private LocalDateTime unfreezeTime;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;


}
