| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace plugin\admin\app\model;
- use plugin\admin\app\model\Base;
- /**
- * @property integer $id (主键)
- * @property string $affiliated_bank 归属银行
- * @property string $account_holder 开户人
- * @property string $card_number 卡号
- * @property integer $uid 会员id
- * @property string $o_affiliated_bank 旧归属银行
- * @property string $o_account_holder 旧开户人
- * @property string $o_card_number 旧卡号
- * @property string $created_at 创建时间
- * @property string $updated_at 更新时间
- */
- class BankCard extends Base
- {
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'wa_bank_card';
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected $primaryKey = 'id';
- public function userData()
- {
- return $this->hasOne(User::class,'id','uid');
- }
-
-
- }
|