ShopAuthRecord.php 651 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Models;
  3. use Slowlyo\OwlAdmin\Models\AdminUser;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. use Slowlyo\OwlAdmin\Models\BaseModel as Model;
  6. /**
  7. * 店铺认证记录
  8. */
  9. class ShopAuthRecord extends Model
  10. {
  11. use SoftDeletes;
  12. protected $table = 'shop_auth_records';
  13. /**
  14. * @Author FelixYin
  15. * @description 认证记录所属店铺
  16. */
  17. public function shop()
  18. {
  19. return $this->belongsTo(ShopInfo::class, 'shop_id', 'id');
  20. }
  21. /**
  22. * 获取审核人信息
  23. */
  24. public function auditorUser()
  25. {
  26. return $this->belongsTo(AdminUser::class, 'auditor', 'id');
  27. }
  28. }