SystemUserBankcard.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace app\model\system;
  3. use app\extra\basic\Model;
  4. use app\model\saas\SaasShop;
  5. use think\model\relation\HasOne;
  6. /**
  7. * @property integer $id (主键)
  8. * @property integer $agent_id 代理ID
  9. * @property mixed $member_id
  10. * @property string $user_name 姓名
  11. * @property mixed $cert_id 身份证
  12. * @property mixed $tel_no 电话
  13. * @property mixed $bank 银行代码
  14. * @property mixed $card_id 银行卡号
  15. * @property string $valid_from 身份证有效期
  16. * @property string $valid_until 身份证有效期结束
  17. * @property string $card_prov_code 开户银行省
  18. * @property string $card_area_code 开户银行市
  19. * @property string $card_city_name·
  20. */
  21. class SystemUserBankcard extends Model
  22. {
  23. /**
  24. * The connection name for the model.
  25. *
  26. * @var string|null
  27. */
  28. protected $connection = 'mysql';
  29. /**
  30. * The table associated with the model.
  31. *
  32. * @var string
  33. */
  34. protected string $table = "system_user_bankcard";
  35. /**
  36. * The primary key associated with the table.
  37. *
  38. * @var string
  39. */
  40. protected string $primaryKey = "id";
  41. /**
  42. * Indicates if the model should be timestamped.
  43. *
  44. * @var bool
  45. */
  46. public bool $timestamps = false;
  47. public function shop(): HasOne
  48. {
  49. return $this->hasOne(SaasShop::class,"agent_id","shop_id");
  50. }
  51. }