2025-03-24 09:40:45 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace app\common\model\school;
|
|
|
|
|
|
|
|
use think\Model;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 区域数据
|
|
|
|
*/
|
|
|
|
class Area extends Model
|
|
|
|
{
|
|
|
|
|
|
|
|
// 表名,不含前缀
|
|
|
|
protected $name = 'school_area';
|
|
|
|
// 追加属性
|
|
|
|
protected $append = [
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-23 18:31:11 +08:00
|
|
|
public function child()
|
|
|
|
{
|
|
|
|
return $this->hasMany(self::class,'pid');
|
|
|
|
}
|
|
|
|
|
2025-03-24 09:40:45 +08:00
|
|
|
}
|