21 lines
425 B
PHP
21 lines
425 B
PHP
|
|
<?php
|
||
|
|
namespace app\model\Openim;
|
||
|
|
|
||
|
|
use think\Model;
|
||
|
|
/**
|
||
|
|
* @property string $doc_id
|
||
|
|
* @property array $msgs
|
||
|
|
*/
|
||
|
|
class Msg extends \app\model\Base
|
||
|
|
{
|
||
|
|
protected $table = 'msg';
|
||
|
|
protected $schema = [
|
||
|
|
'doc_id' => 'string',
|
||
|
|
'msgs' => 'array',
|
||
|
|
];
|
||
|
|
protected function getOptions(): array{
|
||
|
|
return array_merge(parent::getOptions(),[
|
||
|
|
'connection' => 'immongodb',
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|