package com.sonic.frog.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.sonic.frog.enums.HeartbeatLevelEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 心动等级字典表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("heartbeat_level_dict")
@ApiModel("心动等级字典表")
public class HeartbeatLevelDict {
    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("心动等级code")
    @TableField("code")
    private HeartbeatLevelEnum code;

    @ApiModelProperty("心动等级名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("心动等级图标")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty("心动等级未解锁图标")
    @TableField("unlock_img_url")
    private String unlockImgUrl;

    @ApiModelProperty("解锁当前等级的心动值开始值")
    @TableField("start_val")
    private java.math.BigDecimal startVal;

    @ApiModelProperty("解锁当前等级的心动值结束值")
    @TableField("end_val")
    private java.math.BigDecimal endVal;

    @ApiModelProperty("解锁当前等级后包含的心动等级code")
    @TableField("unlock_code")
    private String unlockCode;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("是否删除 0：未删除 1：删除")
    @TableField("is_delete")
    private Boolean isDelete;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("编辑时间")
    @TableField("edit_time")
    private LocalDateTime editTime;
}