12345678910111213141516171819202122232425262728 |
- <?php
- /**
- * Created by PhpStorm.
- * User: zilongs
- * Date: 20-9-29
- * Time: 上午11:12
- */
- namespace App\Models;
- class DocterOrganization extends BaseModel
- {
- protected $table='docter_organization';
- public $timestamps = true;
- public function organization()
- {
- return $this->belongsTo(Organization::class);
- }
- public function office()
- {
- return $this->belongsTo(Office::class,'offices_id','id');
- }
- public function qualification()
- {
- return $this->belongsTo(Qualification::class,'qualifications_id','id');
- }
- }
|