SaasStoreAccount.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 integer $type 1个人2企业
  9. * @property string $truename 名字
  10. * @property string $idcard 身份证或营业执照
  11. * @property mixed $content 其他数据
  12. * @property integer $status
  13. * @property mixed $member_id 三方ID
  14. * @property mixed $create_at
  15. */
  16. class SaasStoreAccount extends Model
  17. {
  18. /**
  19. * The connection name for the model.
  20. *
  21. * @var string|null
  22. */
  23. protected $connection = 'mysql';
  24. /**
  25. * The table associated with the model.
  26. *
  27. * @var string
  28. */
  29. protected string $table = "saas_store_account";
  30. /**
  31. * The primary key associated with the table.
  32. *
  33. * @var string
  34. */
  35. protected string $primaryKey = "id";
  36. /**
  37. * Indicates if the model should be timestamped.
  38. *
  39. * @var bool
  40. */
  41. public bool $timestamps = false;
  42. public function store(): HasOne
  43. {
  44. return $this->hasOne(SaasStore::class,"poi_id","poi_id");
  45. }
  46. }