package com.aircraft.modules.route.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.aircraft.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 路线表
 * </p>
 *
 * @author cli
 * @since 2025-07-10
 */
@Data
@TableName("cp_route")
public class CpRoute  {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "路线名称")
    private String name;

    @ApiModelProperty(value = "区域id，关联区域表id")
    private Long areaId;

    @ApiModelProperty(value = "景区id，关联景区表id")
    private Long scenicId;

    @ApiModelProperty(value = "起点，手动存储经纬度，不调用地图")
    private String startPoint;

    @ApiModelProperty(value = "终点")
    private String endPoint;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "文章链接")
    private String link;

    @ApiModelProperty(value = "跳转地址")
    private String url;

    @ApiModelProperty(value = "封面图存储路径")
    private String imgPath;

    @ApiModelProperty(value = "排序号")
    private Integer orderNum;

    @ApiModelProperty(value = "是否展示在用户列表：“1”展示，“0”不展示")
    @TableField("`show`")
    private String show;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者，默认null")
    private String createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者，默认null")
    private String updateBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记：“1”已删除，“0”正常")
    private Integer delFlag;

}
