SaasShop.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. namespace app\model\saas;
  3. use app\extra\basic\Model;
  4. use think\model\relation\HasMany;
  5. /**
  6. * @property integer $id (主键)
  7. * @property integer $agent_id
  8. * @property string $shop_name
  9. * @property string $start_at
  10. * @property string $end_at 营业时间-结束
  11. * @property string $shop_address 地址
  12. * @property mixed $rule 收费规则
  13. * @property integer $rate_type
  14. * @property integer $rate_radio
  15. * @property integer $rate_money
  16. * @property mixed $vip_end VIP到期时间
  17. * @property string $shop_notice 公告
  18. * @property integer $is_deleted
  19. * @property integer $shop_status 1营业2休息
  20. * @property string $shop_contact 联系人
  21. * @property string $shop_mobile 联系电话
  22. * @property integer $user_card 充值套餐0默认1自定义
  23. * @property mixed $user_card_price 会员卡充值套餐自定义金额
  24. * @property integer $balance
  25. * @property integer $total_balance
  26. * @property float $cash_rate 提现费率
  27. * @property integer $status 0正常1到期2冻结
  28. * @property mixed $line_time 最后在线时间
  29. * @property mixed $create_at
  30. */
  31. class SaasShop extends Model
  32. {
  33. /**
  34. * The connection name for the model.
  35. *
  36. * @var string|null
  37. */
  38. protected $connection = 'mysql';
  39. /**
  40. * The table associated with the model.
  41. *
  42. * @var string
  43. */
  44. protected string $table = "saas_shop";
  45. /**
  46. * The primary key associated with the table.
  47. *
  48. * @var string
  49. */
  50. protected string $primaryKey = "id";
  51. /**
  52. * Indicates if the model should be timestamped.
  53. *
  54. * @var bool
  55. */
  56. public bool $timestamps = false;
  57. public function wx(): HasMany
  58. {
  59. return $this->hasMany("app\model\system\SystemUserOpen","shop_id","shop_id");
  60. }
  61. }