63 lines
1.6 KiB
PHP
63 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_prescrip_order_refund".
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id 关联用户
|
|
* @property int $po_id 关联处方订单
|
|
* @property string $refund_no 退款单号
|
|
* @property float $refund_price 退款价格
|
|
* @property int $refund_time 退款时间
|
|
* @property string $remark 退款备注
|
|
* @property int $is_refund 是否打款0是未打款1成功-1失败
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
*/
|
|
class PrescripOrderRefund extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_prescrip_order_refund';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['user_id', 'po_id', 'created_at', 'updated_at'], 'required'],
|
|
[['user_id', 'po_id', 'refund_time', 'is_refund', 'created_at', 'updated_at'], 'integer'],
|
|
[['refund_price'], 'number'],
|
|
[['refund_no', 'remark'], 'string', 'max' => 255],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => 'User ID',
|
|
'po_id' => 'Po ID',
|
|
'refund_no' => 'Refund No',
|
|
'refund_price' => 'Refund Price',
|
|
'refund_time' => 'Refund Time',
|
|
'remark' => 'Remark',
|
|
'is_refund' => 'Is Refund',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
];
|
|
}
|
|
}
|