Payorder.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace plugin\admin\app\model;
  3. use plugin\admin\app\model\Base;
  4. /**
  5. * @property integer $id 主键(主键)
  6. * @property integer $goods_id 产品ID
  7. * @property integer $goods_type 产品类型
  8. * @property integer $user_id 会员ID
  9. * @property integer $order_no 订单号
  10. * @property string $pay_no 支付平台订单号
  11. * @property integer $pay_characteristic 支付标识
  12. * @property integer $pay_type 支付渠道
  13. * @property string $money 支付金额
  14. * @property integer $is_pay 支付状态
  15. * @property string $img 支付凭证 type 30
  16. * @property integer $num 购买数量
  17. * @property mixed $created_at 创建时间
  18. * @property mixed $updated_at 更新时间
  19. */
  20. class Payorder extends Base
  21. {
  22. /**
  23. * The table associated with the model.
  24. *
  25. * @var string
  26. */
  27. protected $table = 'wa_payorder';
  28. /**
  29. * The primary key associated with the table.
  30. *
  31. * @var string
  32. */
  33. protected $primaryKey = 'id';
  34. public function userData()
  35. {
  36. return $this->hasOne(User::class,'id','user_id');
  37. }
  38. }