39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
|
|
<?php
|
||
|
|
namespace app\model\Openim;
|
||
|
|
|
||
|
|
use think\Model;
|
||
|
|
/**
|
||
|
|
* @property string $group_id
|
||
|
|
* @property string $user_id
|
||
|
|
* @property string $nickname
|
||
|
|
* @property string $face_url
|
||
|
|
* @property int $role_level
|
||
|
|
* @property datetime $join_time
|
||
|
|
* @property int $join_source
|
||
|
|
* @property string $inviter_user_id
|
||
|
|
* @property string $operator_user_id
|
||
|
|
* @property datetime $mute_end_time
|
||
|
|
* @property string $ex
|
||
|
|
*/
|
||
|
|
class GroupMember extends \app\model\Base
|
||
|
|
{
|
||
|
|
protected $table = 'group_member';
|
||
|
|
protected $schema = [
|
||
|
|
'group_id' => 'string',
|
||
|
|
'user_id' => 'string',
|
||
|
|
'nickname' => 'string',
|
||
|
|
'face_url' => 'string',
|
||
|
|
'role_level' => 'int',
|
||
|
|
'join_time' => 'datetime',
|
||
|
|
'join_source' => 'int',
|
||
|
|
'inviter_user_id' => 'string',
|
||
|
|
'operator_user_id' => 'string',
|
||
|
|
'mute_end_time' => 'datetime',
|
||
|
|
'ex' => 'string',
|
||
|
|
];
|
||
|
|
protected function getOptions(): array{
|
||
|
|
return array_merge(parent::getOptions(),[
|
||
|
|
'connection' => 'immongodb',
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|