StoreService.php 507 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020/5/29
  7. *
  8. *
  9. */
  10. namespace app\common\model\store\service;
  11. use app\common\model\BaseModel;
  12. use app\common\model\user\User;
  13. class StoreService extends BaseModel
  14. {
  15. public static function tablePk(): ?string
  16. {
  17. return 'service_id';
  18. }
  19. public static function tableName(): string
  20. {
  21. return 'store_service';
  22. }
  23. public function user()
  24. {
  25. return $this->hasOne(User::class, 'uid', 'uid');
  26. }
  27. }