初始化仓库
This commit is contained in:
59
common/modelsgii/UserComment.php
Normal file
59
common/modelsgii/UserComment.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "yii_user_comment".
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $order_id 订单id
|
||||
* @property int $user_id 用户id
|
||||
* @property int $u_id 患者id
|
||||
* @property int $su_id 医生id
|
||||
* @property int $score 评分1很差2较差3好4很好5非常好
|
||||
* @property string|null $comment 评论
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
*/
|
||||
class UserComment extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'z_yii_user_comment';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['u_id', 'su_id', 'score'], 'required'],
|
||||
[['u_id', 'su_id', 'order_id','user_id','score', 'created_at', 'updated_at'], 'integer'],
|
||||
[['comment'], 'string'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'order_id' => '订单',
|
||||
'user_id' => '用户',
|
||||
'u_id' => '患者id',
|
||||
'su_id' => '医生id',
|
||||
'score' => '评分1很差2较差3好4很好5非常好',
|
||||
'comment' => '评论',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user