BankCard.php 921 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace plugin\admin\app\model;
  3. use plugin\admin\app\model\Base;
  4. /**
  5. * @property integer $id (主键)
  6. * @property string $affiliated_bank 归属银行
  7. * @property string $account_holder 开户人
  8. * @property string $card_number 卡号
  9. * @property integer $uid 会员id
  10. * @property string $o_affiliated_bank 旧归属银行
  11. * @property string $o_account_holder 旧开户人
  12. * @property string $o_card_number 旧卡号
  13. * @property string $created_at 创建时间
  14. * @property string $updated_at 更新时间
  15. */
  16. class BankCard extends Base
  17. {
  18. /**
  19. * The table associated with the model.
  20. *
  21. * @var string
  22. */
  23. protected $table = 'wa_bank_card';
  24. /**
  25. * The primary key associated with the table.
  26. *
  27. * @var string
  28. */
  29. protected $primaryKey = 'id';
  30. public function userData()
  31. {
  32. return $this->hasOne(User::class,'id','uid');
  33. }
  34. }