初始化仓库
This commit is contained in:
64
common/modelsgii/ProductOrderRefund.php
Normal file
64
common/modelsgii/ProductOrderRefund.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "yii_product_order_refund".
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $user_id 用户id
|
||||
* @property int $order_id 关联产品订单
|
||||
* @property string $refund_no 退款单号
|
||||
* @property float $refund_price 金额
|
||||
* @property string $remark 备注
|
||||
* @property int $is_refund
|
||||
* @property int $refund_time
|
||||
* @property string $check_result
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
*/
|
||||
class ProductOrderRefund extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'yii_product_order_refund';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['user_id', 'order_id'], 'required'],
|
||||
[['user_id', 'order_id', 'is_refund', 'created_at', 'updated_at'], 'integer'],
|
||||
[['refund_price'], 'number'],
|
||||
[['refund_no', 'remark'], 'string', 'max' => 255],
|
||||
['check_result', 'string', 'max' => 200],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'user_id' => 'User ID',
|
||||
'order_id' => 'Order ID',
|
||||
'refund_no' => 'Refund No',
|
||||
'refund_price' => 'Refund Price',
|
||||
'remark' => 'Remark',
|
||||
'is_refund' => 'Is Refund',
|
||||
'refund_time' => 'Refund Time',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user