SaasDepositLog.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace app\model\saas;
  3. use app\extra\basic\Model;
  4. use think\model\relation\HasOne;
  5. /**
  6. * @property integer $id (主键)
  7. * @property mixed $poi_id
  8. * @property mixed $order_sn
  9. * @property integer $money
  10. * @property integer $status 1生效0待处理
  11. * @property integer $type
  12. * @property mixed $create_at
  13. */
  14. class SaasDepositLog extends Model
  15. {
  16. /**
  17. * The connection name for the model.
  18. *
  19. * @var string|null
  20. */
  21. protected $connection = 'mysql';
  22. /**
  23. * The table associated with the model.
  24. *
  25. * @var string
  26. */
  27. protected string $table = "saas_deposit_log";
  28. /**
  29. * The primary key associated with the table.
  30. *
  31. * @var string
  32. */
  33. protected string $primaryKey = "id";
  34. /**
  35. * Indicates if the model should be timestamped.
  36. *
  37. * @var bool
  38. */
  39. public bool $timestamps = false;
  40. public function poi(): HasOne
  41. {
  42. return $this->hasOne(SaasStore::class, 'poi_id', 'poi_id');
  43. }
  44. }