Files
im/app/model/Openim/Conversation.php
T
commie d75fea32f7 12
2026-02-27 13:53:53 +08:00

53 lines
1.5 KiB
PHP

<?php
namespace app\model\Openim;
use think\Model;
/**
* @property string $owner_user_id
* @property string $conversation_id
* @property int $conversation_type
* @property string $user_id
* @property string $group_id
* @property int $recv_msg_opt
* @property bool $is_pinned
* @property bool $is_private_chat
* @property int $burn_duration
* @property int $group_at_type
* @property string $attached_info
* @property string $ex
* @property int $max_seq
* @property int $min_seq
* @property datetime $create_time
* @property bool $is_msg_destruct
* @property int $msg_destruct_time
* @property datetime $latest_msg_destruct_time
*/
class Conversation extends \app\model\Base
{
protected $table = 'conversation';
protected $schema = [
'owner_user_id' => 'string',
'conversation_id' => 'string',
'conversation_type' => 'int',
'user_id' => 'string',
'group_id' => 'string',
'recv_msg_opt' => 'int',
'is_pinned' => 'bool',
'is_private_chat' => 'bool',
'burn_duration' => 'int',
'group_at_type' => 'int',
'attached_info' => 'string',
'ex' => 'string',
'max_seq' => 'int',
'min_seq' => 'int',
'create_time' => 'datetime',
'is_msg_destruct' => 'bool',
'msg_destruct_time' => 'int',
'latest_msg_destruct_time' => 'datetime',
];
protected function getOptions(): array{
return array_merge(parent::getOptions(),[
'connection' => 'immongodb',
]);
}
}