package com.ruoyi.web.v2.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-12-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("deduction_record")
public class DeductionRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 扣费编号
     */
    private String deductionNum;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 扣费单价
     */
    private String deductionRate;

    /**
     * 0试用 1余额
     */
    private Integer deductionType;

    /**
     * 扣费金额
     */
    private String deductionAmount;

    /**
     * 账户余额
     */
    private String accountBalance;

    /**
     * 体验余额
     */
    private String experienceBalance;

    private String userId;

    private String account;


}
