| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace app\model\system;
- use app\extra\basic\Model;
- use app\model\saas\SaasShop;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property integer $agent_id 代理ID
- * @property mixed $member_id
- * @property string $user_name 姓名
- * @property mixed $cert_id 身份证
- * @property mixed $tel_no 电话
- * @property mixed $bank 银行代码
- * @property mixed $card_id 银行卡号
- * @property string $valid_from 身份证有效期
- * @property string $valid_until 身份证有效期结束
- * @property string $card_prov_code 开户银行省
- * @property string $card_area_code 开户银行市
- * @property string $card_city_name·
- */
- class SystemUserBankcard extends Model
- {
- /**
- * The connection name for the model.
- *
- * @var string|null
- */
- protected $connection = 'mysql';
-
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected string $table = "system_user_bankcard";
-
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected string $primaryKey = "id";
-
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public bool $timestamps = false;
- public function shop(): HasOne
- {
- return $this->hasOne(SaasShop::class,"agent_id","shop_id");
- }
- }
|