85 lines
2.8 KiB
PHP
85 lines
2.8 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii\oldDb;
|
|
|
|
/**
|
|
* This is the model class for table "yii_register".
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id 用户id
|
|
* @property int $service_user_id 医生id
|
|
* @property int $user_patient_id 就诊人id
|
|
* @property int $store_id 诊所id
|
|
* @property int $origin_store_id 发起委托方诊所/药店ID(药价)
|
|
* @property string $order_no 订单号
|
|
* @property int $depart_id
|
|
* @property int $order_number 挂号序号
|
|
* @property float $price 挂号金额
|
|
* @property int $is_pay 是否支付0否1是
|
|
* @property int $status 状态:1待接诊2接诊中3已结束4已取消5待评价6已评价7已拒诊
|
|
* @property string $refuse_reason 拒诊原因
|
|
* @property int $pay_type 支付方式1=微信支付
|
|
* @property int $pay_time 支付时间
|
|
* @property int $is_cancel 是否取消
|
|
* @property int $cancel_time 取消时间
|
|
* @property int $refund_status 退款状态0否1是
|
|
* @property int $refund_time
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
* @property int $is_delete 是否删除
|
|
*/
|
|
class Register extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_register';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['user_id', 'service_user_id', 'user_patient_id', 'store_id', 'order_no', 'depart_id', 'order_number'], 'required'],
|
|
[['user_id', 'service_user_id', 'user_patient_id', 'store_id', 'origin_store_id', 'depart_id', 'order_number', 'is_pay', 'status', 'pay_type', 'pay_time', 'is_cancel', 'cancel_time', 'refund_status', 'refund_time', 'created_at', 'updated_at', 'is_delete'], 'integer'],
|
|
[['price'], 'number'],
|
|
[['order_no', 'refuse_reason'], 'string', 'max' => 255],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => 'User ID',
|
|
'service_user_id' => 'Service User ID',
|
|
'user_patient_id' => 'User Patient ID',
|
|
'store_id' => 'Store ID',
|
|
'origin_store_id' => 'Origin Store ID',
|
|
'order_no' => 'Order No',
|
|
'depart_id' => 'Depart ID',
|
|
'order_number' => 'Order Number',
|
|
'price' => 'Price',
|
|
'is_pay' => 'Is Pay',
|
|
'status' => 'Status',
|
|
'refuse_reason' => 'Refuse Reason',
|
|
'pay_type' => 'Pay Type',
|
|
'pay_time' => 'Pay Time',
|
|
'is_cancel' => 'Is Cancel',
|
|
'cancel_time' => 'Cancel Time',
|
|
'refund_status' => 'Refund Status',
|
|
'refund_time' => 'Refund Time',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
'is_delete' => 'Is Delete',
|
|
];
|
|
}
|
|
}
|