SystemUserMoney.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace app\model\system;
  3. use app\extra\basic\Model;
  4. use app\model\saas\SaasShop;
  5. use think\model\relation\HasOne;
  6. /**
  7. * @property integer $id (主键)
  8. * @property mixed $order_sn 结算编号
  9. * @property mixed $agent_id
  10. * @property integer $money
  11. * @property mixed $day
  12. * @property integer $status 1已结算0待结算
  13. * @property mixed $member_id 银行卡id
  14. * @property mixed $create_at
  15. */
  16. class SystemUserMoney extends Model
  17. {
  18. /**
  19. * The connection name for the model.
  20. *
  21. * @var string|null
  22. */
  23. protected $connection = 'mysql';
  24. /**
  25. * The table associated with the model.
  26. *
  27. * @var string
  28. */
  29. protected string $table = "system_user_money";
  30. /**
  31. * The primary key associated with the table.
  32. *
  33. * @var string
  34. */
  35. protected string $primaryKey = "id";
  36. /**
  37. * Indicates if the model should be timestamped.
  38. *
  39. * @var bool
  40. */
  41. public bool $timestamps = false;
  42. public function shop(): HasOne
  43. {
  44. return $this->hasOne(SaasShop::class,"shop_id","agent_id");
  45. }
  46. }