DocterSetting.php 437 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zilongs
  5. * Date: 20-9-29
  6. * Time: 上午11:12
  7. */
  8. namespace App\Models;
  9. class DocterSetting extends BaseModel
  10. {
  11. protected $table="docter_settings";
  12. public $timestamps = false;
  13. public function docter(){
  14. return $this->hasOne(Docter::class,'id','docter_id');
  15. }
  16. public function organization(){
  17. return $this->hasOne(Organization::class,'id','org_id');
  18. }
  19. }