12
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?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',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user