package cn.qinys.platform.entity.wishing;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author lie tan
 * @description
 * @date 2026-05-17 21:33
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("wishing_tree")
public class WishingTree extends BaseEntity  {

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

    private String name; // 许愿树名称

    private String description;

    private String summary;

    private BigDecimal longitude;

    private BigDecimal latitude;

    private String address;

    private Integer radius = 100; // 有效范围(米)，设置默认值以与 DB 的默认保持一致

    private String coverImage;

    private Integer totalWishes = 0; // 总许愿数(Redis定时同步)

    private Integer isActive; // TINYINT -> Boolean 映射（Hibernate 会映射为 0/1）

}
