HxStorePoi.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace app\model\hx;
  3. use app\extra\basic\Model;
  4. use think\model\relation\HasOne;
  5. /**
  6. * @property integer $id (主键)
  7. * @property integer $store_id 来客id
  8. * @property integer $poi_id
  9. * @property string $poi_name
  10. * @property string $poi_address
  11. * @property string $poi_logo
  12. * @property mixed $poi_account_id 门店账户ID
  13. * @property string $poi_city
  14. * @property float $longitude
  15. * @property float $latitude
  16. * @property mixed $product_type
  17. * @property integer $is_default
  18. * @property integer $status
  19. * @property mixed $order_start 核销开始时间
  20. * @property mixed $order_end 核销结束时间
  21. * @property mixed $create_at
  22. */
  23. class HxStorePoi extends Model
  24. {
  25. /**
  26. * The connection name for the model.
  27. *
  28. * @var string|null
  29. */
  30. protected $connection = 'mysql';
  31. /**
  32. * The table associated with the model.
  33. *
  34. * @var string
  35. */
  36. protected string $table = "hx_store_poi";
  37. /**
  38. * The primary key associated with the table.
  39. *
  40. * @var string
  41. */
  42. protected string $primaryKey = "id";
  43. /**
  44. * Indicates if the model should be timestamped.
  45. *
  46. * @var bool
  47. */
  48. public bool $timestamps = false;
  49. public function agent(): HasOne
  50. {
  51. return $this->hasOne(HxAgent::class,"agent_id","agent_id");
  52. }
  53. }