32 lines
774 B
PHP
32 lines
774 B
PHP
<?php
|
|
namespace app\model\Openim;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* @property string $user_id
|
|
* @property string $nickname
|
|
* @property string $face_url
|
|
* @property string $ex
|
|
* @property int $app_manger_level
|
|
* @property int $global_recv_msg_opt
|
|
* @property datetime $create_time
|
|
*/
|
|
class User extends \app\model\Base
|
|
{
|
|
protected $table = 'user';
|
|
protected $schema = [
|
|
'user_id' => 'string',
|
|
'nickname' => 'string',
|
|
'face_url' => 'string',
|
|
'ex' => 'string',
|
|
'app_manger_level' => 'int',
|
|
'global_recv_msg_opt' => 'int',
|
|
'create_time' => 'datetime',
|
|
];
|
|
protected function getOptions(): array{
|
|
return array_merge(parent::getOptions(),[
|
|
'connection' => 'immongodb',
|
|
]);
|
|
}
|
|
} |