Serviceapplys.php 727 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Serviceapplys extends Model
  5. {
  6. //
  7. protected $table = 'service_applys';
  8. public function docter(){
  9. return $this->belongsTo(Docter::class);
  10. }
  11. public function ondocter()
  12. {
  13. return $this->hasOne(Docter::class,'id','docter_id');
  14. }
  15. public function docterorganization()
  16. {
  17. return $this->hasMany(DocterOrganization::class,'docter_id','docter_id');
  18. }
  19. // private static $_post_type =[
  20. // 1 => '图文',
  21. // 2 => '电话',
  22. // 3 => '问诊'
  23. // ];
  24. // private static $_post_status =[
  25. // 1 => '审核',
  26. // 2 => '通过',
  27. // 3 => '未通过'
  28. // ];
  29. }