SaasStore.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 integer $agent_id 代理id
  8. * @property integer $store_id 来客账户id
  9. * @property string $store_name
  10. * @property string $express_name
  11. * @property string $express_mobile
  12. * @property string $express_goods
  13. * @property string $express_unit
  14. * @property string $express_address
  15. * @property integer $express_time
  16. * @property integer $express_type 快递类型
  17. * @property integer $order_end 核销时机1小程序提交2快递取件3快递签收
  18. * @property integer $is_auto 1开启自动呼叫
  19. * @property integer $is_reback 1开启自动拦截
  20. * @property integer $status
  21. * @property mixed $create_at
  22. */
  23. class SaasStore 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 = "saas_store";
  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("app\model\saas\SaasAgent","agent_id","agent_id");
  52. }
  53. }