初始化仓库
This commit is contained in:
61
common/modelsgii/ImMessage.php
Normal file
61
common/modelsgii/ImMessage.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "yii_im_message".
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $ims_id 会话id
|
||||
* @property int $user_id 用户端id
|
||||
* @property int $service_id 服务端id
|
||||
* @property string|null $content 消息内容
|
||||
* @property int $read_status 阅读状态0未读1已读
|
||||
* @property int $type 0用户发1对端发
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
* @property int $is_delete
|
||||
*/
|
||||
class ImMessage extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'yii_im_message';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['ims_id', 'user_id'], 'required'],
|
||||
[['ims_id', 'user_id', 'service_id', 'read_status', 'type', 'created_at', 'updated_at', 'is_delete'], 'integer'],
|
||||
[['content'], 'string'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'ims_id' => 'Ims ID',
|
||||
'user_id' => 'User ID',
|
||||
'service_id' => 'Service ID',
|
||||
'content' => 'Content',
|
||||
'read_status' => 'Read Status',
|
||||
'type' => 'Type',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
'is_delete' => 'Is Delete',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user