| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace plugin\admin\app\model;
- use plugin\admin\app\model\Base;
- /**
- * @property integer $id 主键(主键)
- * @property integer $goods_id 产品ID
- * @property integer $goods_type 产品类型
- * @property integer $user_id 会员ID
- * @property integer $order_no 订单号
- * @property string $pay_no 支付平台订单号
- * @property integer $pay_characteristic 支付标识
- * @property integer $pay_type 支付渠道
- * @property string $money 支付金额
- * @property integer $is_pay 支付状态
- * @property string $img 支付凭证 type 30
- * @property integer $num 购买数量
- * @property mixed $created_at 创建时间
- * @property mixed $updated_at 更新时间
- */
- class Payorder extends Base
- {
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'wa_payorder';
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected $primaryKey = 'id';
- public function userData()
- {
- return $this->hasOne(User::class,'id','user_id');
- }
-
- }
|