SaasStore.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace app\model\saas;
  3. use app\extra\basic\Model;
  4. /**
  5. * @property integer $id (主键)
  6. * @property integer $store_id
  7. * @property integer $agent_id
  8. * @property string $truename
  9. * @property string $store_code
  10. * @property string $store_mch
  11. * @property integer $store_type
  12. * @property integer $wash_type
  13. * @property string $store_address
  14. * @property string $store_status
  15. * @property string $store_order
  16. * @property string $store_sms
  17. * @property string $store_express
  18. * @property string $store_inter_order
  19. * @property string $mobile
  20. * @property mixed $vip_at
  21. * @property string $license
  22. * @property mixed $create_at
  23. */
  24. class SaasStore extends Model
  25. {
  26. /**
  27. * The connection name for the model.
  28. *
  29. * @var string|null
  30. */
  31. protected $connection = 'mysql';
  32. /**
  33. * The table associated with the model.
  34. *
  35. * @var string
  36. */
  37. protected string $table = "saas_store";
  38. /**
  39. * The primary key associated with the table.
  40. *
  41. * @var string
  42. */
  43. protected string $primaryKey = "id";
  44. /**
  45. * Indicates if the model should be timestamped.
  46. *
  47. * @var bool
  48. */
  49. public bool $timestamps = false;
  50. public function user()
  51. {
  52. return $this->hasOne("app\model\system\SystemUser","user_id","store_id");
  53. }
  54. }