123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Created by PhpStorm.
- * User: zilongs
- * Date: 20-9-29
- * Time: 上午11:12
- */
- namespace App\Models;
- class DocterUser extends BaseModel
- {
- protected $table='docter_user';
- public $timestamps = true;
- public function user()
- {
- return $this->belongsTo(User::class);
- }
- // public function office()
- // {
- // return $this->belongsTo(Office::class)->select(['id', 'name']);
- // }
- //
- // public function qualification()
- // {
- // return $this->belongsTo(Qualification::class)->select(['id', 'name']);
- // }
- //
- // public function organization()
- // {
- // return $this->belongsToMany(Organization::class);
- // }
- //
- // public function evaluate()
- // {
- // return $this->hasMany(Evaluate::class)->where('status', 2);
- // }
- }
|