Withdraw.php 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace plugin\admin\app\model;
  3. use plugin\admin\app\model\Base;
  4. /**
  5. * @property integer $id (主键)
  6. * @property integer $user_id 用户ID
  7. * @property integer $order_no 订单号
  8. * @property string $money 提现金额
  9. * @property integer $status 状态 1 待审核 2打款中 3审核通过 4驳回
  10. * @property integer $type 钱包类型 1收益余额 2慈善钱包 3 佣金钱包
  11. * @property string $affiliated_bank 归属银行
  12. * @property string $account_holder 开户人
  13. * @property string $card_number 卡号
  14. * @property string $created_at 提交时间
  15. * @property string $updated_at 更新时间
  16. */
  17. class Withdraw extends Base
  18. {
  19. /**
  20. * The table associated with the model.
  21. *
  22. * @var string
  23. */
  24. protected $table = 'wa_withdraw';
  25. /**
  26. * The primary key associated with the table.
  27. *
  28. * @var string
  29. */
  30. protected $primaryKey = 'id';
  31. public function userData()
  32. {
  33. return $this->hasOne(User::class,'id','user_id');
  34. }
  35. }