| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%order_union}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $user_id
- * @property string $order_no
- * @property string $order_id_list
- * @property string $price
- * @property integer $is_pay
- * @property integer $created_at
- * @property integer $is_delete
- */
- class OrderUnion extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%order_union}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'user_id', 'order_no', 'order_id_list', 'price'], 'required'],
- [['store_id', 'user_id', 'is_pay', 'created_at', 'is_delete'], 'integer'],
- [['order_id_list'], 'string'],
- [['price'], 'number'],
- [['order_no', 'type'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'user_id' => 'User ID',
- 'order_no' => '支付单号',
- 'order_id_list' => '订单id列表',
- 'price' => '支付金额',
- 'is_pay' => '是否已付款0=未付款,1=已付款',
- 'created_at' => 'Addtime',
- 'is_delete' => 'Is Delete',
- 'type' => '订单类型',
- ];
- }
- public function getUser()
- {
- return $this->hasOne(User::className(),['id'=>'user_id']);
- }
- }
|