DocterUser.php 806 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 DocterUser extends BaseModel
  10. {
  11. protected $table='docter_user';
  12. public $timestamps = true;
  13. public function user()
  14. {
  15. return $this->belongsTo(User::class);
  16. }
  17. // public function office()
  18. // {
  19. // return $this->belongsTo(Office::class)->select(['id', 'name']);
  20. // }
  21. //
  22. // public function qualification()
  23. // {
  24. // return $this->belongsTo(Qualification::class)->select(['id', 'name']);
  25. // }
  26. //
  27. // public function organization()
  28. // {
  29. // return $this->belongsToMany(Organization::class);
  30. // }
  31. //
  32. // public function evaluate()
  33. // {
  34. // return $this->hasMany(Evaluate::class)->where('status', 2);
  35. // }
  36. }