LEVEL_PROVINCE
LEVEL_PROVINCE = 1
层级:省
行政地区(省/市/区/街道/村 五级树)
职责:地区档案——公司/部门表单的 region_id 档案字段引用;不参与数据权限推导。 借 SubtreeIds Trait 提供前缀区间子树查询。
$id : int
主键ID
$parent_id : int
父级ID,0=顶级
$ancestors : string
祖级路径
$name : string
地区名称
$level : int
层级:1 省、2 市、3 区、4 街道、5 村(五级)
$sort : int
排序号
$status : int
状态:1 启用,0 停用
$create_time : string
创建时间
$update_time : string|null
更新时间
$code : string
行政区划代码,12 位
$pinyin : string
拼音
$pinyin_prefix : string
拼音首字母
$longitude : float|null
经度
$latitude : float|null
纬度
$postal_code : string
邮编
$area_code : string
电话区号,如 010/020
┌────────────────── 分区导航(按此顺序阅读)──────────────────┐ 分区 1 · 常量 本地枚举(启停状态 STATUS_* 已单源 HasStatusConstants) 分区 2 · 表名与属性 $table / $fillable / casts 分区 3 · 关联关系 parent / children / companies / depts └────────────────────────────────────────────────────────────┘