57 lines
1.5 KiB
PHP
57 lines
1.5 KiB
PHP
<?php
|
||
|
||
namespace common\modelsgii\oldDb;
|
||
|
||
/**
|
||
* This is the model class for table "yii_im_message_session".
|
||
*
|
||
* @property int $id
|
||
* @property int $user_id 用户端id(这里也可能是医生药师导医)
|
||
* @property int $service_id 服务端id(这里也可能是用户)
|
||
* @property int $type 会话类型0用户用户1用户医生3用户导医5医生客服6药师客服7导医客服
|
||
* @property int $status 会话状态0进行中,10已结束
|
||
* @property int $created_at
|
||
* @property int $updated_at
|
||
* @property int $is_delete
|
||
* @property int $in_time 需要接入的话,接入时间
|
||
*/
|
||
class ImMessageSession extends \common\core\BaseActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'yii_im_message_session';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['user_id'], 'required'],
|
||
[['user_id', 'service_id', 'type', 'status', 'created_at', 'updated_at', 'is_delete', 'in_time'], 'integer'],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'user_id' => 'User ID',
|
||
'service_id' => 'Service ID',
|
||
'type' => 'Type',
|
||
'status' => 'Status',
|
||
'created_at' => 'Created At',
|
||
'updated_at' => 'Updated At',
|
||
'is_delete' => 'Is Delete',
|
||
'in_time' => 'In Time',
|
||
];
|
||
}
|
||
}
|