OrgDepart.php 557 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\common\model\base\org;
  3. /**
  4. * @title : 组织部门/组织科室模型
  5. * @desc :
  6. * @Author : Rock
  7. * @Date : 2022-01-10 09:44:23
  8. * @LastEditTime : 2023-02-03 10:18:34
  9. */
  10. use app\common\model\Common;
  11. class OrgDepart extends Common
  12. {
  13. protected $name = "system_org_depart";
  14. protected $pk = "depart_id";
  15. protected $createTime = 'create_at';
  16. protected $updateTime = 'update_at';
  17. protected $deleteTime = 'delete_at';
  18. public function org()
  19. {
  20. return $this->belongsTo(Org::class,'org_id','org_id');
  21. }
  22. }