27 lines
624 B
PHP
27 lines
624 B
PHP
<?php
|
|
namespace app\model\Openim;
|
|
|
|
use think\Model;
|
|
/**
|
|
* @property string $conversation_id
|
|
* @property string $user_id
|
|
* @property int $max_seq
|
|
* @property int $min_seq
|
|
* @property int $read_seq
|
|
*/
|
|
class SeqUser extends \app\model\Base
|
|
{
|
|
protected $table = 'seq_user';
|
|
protected $schema = [
|
|
'conversation_id' => 'string',
|
|
'user_id' => 'string',
|
|
'max_seq' => 'int',
|
|
'min_seq' => 'int',
|
|
'read_seq' => 'int',
|
|
];
|
|
protected function getOptions(): array{
|
|
return array_merge(parent::getOptions(),[
|
|
'connection' => 'immongodb',
|
|
]);
|
|
}
|
|
} |