ShopList.php 361 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. namespace app\common\model;
  4. use think\Model;
  5. class ShopList Extends Model
  6. {
  7. //客户
  8. public function customer()
  9. {
  10. return $this->hasOne(Customer::class,'id','customer_id');
  11. }
  12. public function staff()
  13. {
  14. return $this->hasOne(User::class,'id','staff_id');
  15. }
  16. }