package com.qiuguo.iot.data.entity.system;
import org.hswebframework.ezorm.rdb.mapping.annotation.Comment;
import org.hswebframework.web.crud.annotation.EnableEntityEvent;
import org.hswebframework.web.api.crud.entity.GenericEntity;
import javax.persistence.Column;
import javax.persistence.Table;import lombok.Data;
import java.util.Date;
/**
* <p>
* </p>*数据-区域
* @author wulin
* @since 2023-09-26
*/

@Data
@Comment("数据-区域")
@Table(name = "system_address")
@EnableEntityEvent
public class SystemAddressEntity extends GenericEntity<Long> {
    @Comment("ID")
    @Column(name = "id", length = 11, nullable = false, unique = true)
    private Long id;

    @Comment("is_delete")
    @Column(name = "is_delete")
    private Integer isDelete;

    @Comment("create_time")
    @Column(name = "create_time")
    private Date createTime;

    @Comment("modify_time")
    @Column(name = "modify_time")
    private Date modifyTime;

    @Comment("上级ID")
    @Column(name = "parent_id", nullable = false)
    private Long parentId;

    @Comment("adcode")
    @Column(name = "adcode")
    private Integer adcode;

    @Comment("上级 adcode")
    @Column(name = "padcode", nullable = false)
    private Integer padcode;

    @Comment("首字母")
    @Column(name = "first", length = 50)
    private String first;

    @Comment("区域简称")
    @Column(name = "short_name", length = 100)
    private String shortName;

    @Comment("区域名称")
    @Column(name = "name", length = 100)
    private String name;

    @Comment("adcode_link")
    @Column(name = "adcode_link", length = 56)
    private String adcodeLink;

    @Comment("name_link")
    @Column(name = "name_link", length = 255)
    private String nameLink;

    @Comment("区域层级")
    @Column(name = "level")
    private Integer level;

    @Comment("区域拼音")
    @Column(name = "pinyin", length = 100)
    private String pinyin;

    @Comment("区域邮编")
    @Column(name = "postcode", length = 100)
    private String postcode;

    @Comment("使用状态")
    @Column(name = "status", length = 1)
    private Integer status;

    @Comment("所在经度")
    @Column(name = "lng", length = 100)
    private String lng;

    @Comment("所在纬度")
    @Column(name = "lat", length = 100)
    private String lat;

}