35 lines
934 B
PHP
35 lines
934 B
PHP
|
|
<?php
|
||
|
|
namespace app\model\Openim;
|
||
|
|
|
||
|
|
use think\Model;
|
||
|
|
/**
|
||
|
|
* @property string $from_user_id
|
||
|
|
* @property string $to_user_id
|
||
|
|
* @property int $handle_result
|
||
|
|
* @property string $req_msg
|
||
|
|
* @property datetime $create_time
|
||
|
|
* @property string $handler_user_id
|
||
|
|
* @property string $handle_msg
|
||
|
|
* @property datetime $handle_time
|
||
|
|
* @property string $ex
|
||
|
|
*/
|
||
|
|
class FriendRequest extends \app\model\Base
|
||
|
|
{
|
||
|
|
protected $table = 'friend_request';
|
||
|
|
protected $schema = [
|
||
|
|
'from_user_id' => 'string',
|
||
|
|
'to_user_id' => 'string',
|
||
|
|
'handle_result' => 'int',
|
||
|
|
'req_msg' => 'string',
|
||
|
|
'create_time' => 'datetime',
|
||
|
|
'handler_user_id' => 'string',
|
||
|
|
'handle_msg' => 'string',
|
||
|
|
'handle_time' => 'datetime',
|
||
|
|
'ex' => 'string',
|
||
|
|
];
|
||
|
|
protected function getOptions(): array{
|
||
|
|
return array_merge(parent::getOptions(),[
|
||
|
|
'connection' => 'immongodb',
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|