package com.sqx.modules.artificer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


/**
 * @description:
 * @author：zc.
 * @createData：2024-1-17 上午 10:34
 * @projectName：anmo
 * @className：userRecharge
 * @packageName：com.sqx.modules.artificer.entity
 */
@Data
@TableName("user_recharge")
public class UserRecharge implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.AUTO)
    private Long id;

    private String type;
    /**
     * 积分类型（1在线积分2储值积分）
     */
    private Long artificerId;
    private Long userId;
    private Long ordersId;
    /**
     * 用户充值积分
     */
    private BigDecimal userRecharge;

    @ApiModelProperty("创建时间")
    private String createTime;

    @TableField(exist = false)
    private String formattedDate;
    @TableField(exist = false)
    private String ordersNo;
    @TableField(exist = false)
    private List<UserRecharge> children;

}
