SaasStoreOpen.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 string $company_name
  9. * @property mixed $company_number
  10. * @property string $company_sub_name
  11. * @property string $company_license 营业执照
  12. * @property string $city_name
  13. * @property mixed $city_code
  14. * @property string $address
  15. * @property string $legal_name 法人姓名
  16. * @property mixed $legal_mobile
  17. * @property mixed $legal_idcard 身份证号
  18. * @property string $legal_id_front 正面
  19. * @property string $legal_id_back 反面
  20. * @property mixed $email
  21. * @property mixed $bank_number 对公帐号
  22. * @property string $bank_code 开户行编码
  23. * @property string $bank_img 开户许可证照片
  24. * @property integer $status
  25. * @property string $remark
  26. * @property mixed $last_at
  27. * @property mixed $create_at
  28. */
  29. class SaasStoreOpen extends Model
  30. {
  31. /**
  32. * The connection name for the model.
  33. *
  34. * @var string|null
  35. */
  36. protected $connection = 'mysql';
  37. /**
  38. * The table associated with the model.
  39. *
  40. * @var string
  41. */
  42. protected string $table = "saas_store_open";
  43. /**
  44. * The primary key associated with the table.
  45. *
  46. * @var string
  47. */
  48. protected string $primaryKey = "id";
  49. /**
  50. * Indicates if the model should be timestamped.
  51. *
  52. * @var bool
  53. */
  54. public bool $timestamps = false;
  55. public function poi(): HasOne
  56. {
  57. return $this->hasOne(SaasStore::class, 'poi_id', 'poi_id');
  58. }
  59. }