package com.codvision.base.entity;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.codvision.webcore.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *  行政区域
 * </p>
 *
 * @author zz
 * @since 2023-08-09
 */
@Data
@TableName("tbl_region")
@ApiModel(value = "Region", description = "行政区域")
@KeySequence(value = "tbl_region_id_seq")
public class Region extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("区域编码")
    private String adCode;

    @ApiModelProperty("区域中心点经纬度")
    private String center;

    @ApiModelProperty("城市代码")
    private String cityCode;

    @ApiModelProperty("行政区划级别")
    private String level;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("父ID")
    private Long parentId;

    @ApiModelProperty("行政地区路径")
    private String path;

    @ApiModelProperty("排序")
    private Integer orderNum;


}
