123456789101112131415161718 |
- <?php
- namespace app\admin\model;
- use think\Model;
- class Department extends Model{
- protected $table = 'cp_department';
- protected $autoWriteTimestamp = true;
- public function position(){
- return $this->hasMany('Position', 'did', 'id');
- }
- }
|