OrderVaccine.php 487 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zilongs
  5. * Date: 20-10-2
  6. * Time: 下午11:44
  7. */
  8. namespace App\Models;
  9. class OrderVaccine extends BaseModel
  10. {
  11. public function patients()
  12. {
  13. return $this->hasOne(OrderPatient::class , 'id','order_patient_id');
  14. }
  15. public function docters()
  16. {
  17. return $this->hasOne(Docter::class,'id','docter_id');
  18. }
  19. public function orders()
  20. {
  21. return $this->hasOne(Order::class,'id','order_id');
  22. }
  23. }