初始化仓库
This commit is contained in:
62
common/modelsgii/OrderRefund.php
Normal file
62
common/modelsgii/OrderRefund.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "{{%order_refund}}".
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $user_id 关联用户
|
||||
* @property int $order_id 关联订单
|
||||
* @property string $refund_no 退款单号
|
||||
* @property float $refund_price 退款金额
|
||||
* @property string $remark 用户退款备注、说明
|
||||
* @property int $is_refund 是否打款0是未打款1成功-1失败
|
||||
* @property int $refund_time 打款时间
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
*/
|
||||
class OrderRefund extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return '{{%order_refund}}';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['user_id', 'order_id'], 'required'],
|
||||
[['user_id', 'order_id', 'is_refund', 'refund_time', 'created_at', 'updated_at'], 'integer'],
|
||||
[['refund_price'], 'number'],
|
||||
[['refund_no', 'remark'], 'string', 'max' => 255],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'user_id' => '关联用户',
|
||||
'order_id' => '关联订单',
|
||||
'refund_no' => '退款单号',
|
||||
'refund_price' => '退款金额',
|
||||
'remark' => '用户退款备注、说明',
|
||||
'is_refund' => '是否打款0是未打款1成功-1失败',
|
||||
'refund_time' => '打款时间',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user