12
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
namespace app\model\Openim;
|
||||
|
||||
use think\Model;
|
||||
/**
|
||||
* @property string $friend_id
|
||||
* @property string $owner_user_id
|
||||
* @property string $friend_user_id
|
||||
* @property string $remark
|
||||
* @property datetime $create_time
|
||||
* @property int $add_source
|
||||
* @property string $operator_user_id
|
||||
* @property string $ex
|
||||
* @property bool $is_pinned
|
||||
*/
|
||||
class Friend extends \app\model\Base
|
||||
{
|
||||
protected $table = 'friend';
|
||||
protected $schema = [
|
||||
'owner_user_id' => 'string',
|
||||
'friend_user_id' => 'string',
|
||||
'remark' => 'string',
|
||||
'create_time' => 'datetime',
|
||||
'add_source' => 'int',
|
||||
'operator_user_id' => 'string',
|
||||
'ex' => 'string',
|
||||
'is_pinned' => 'bool',
|
||||
];
|
||||
|
||||
protected function getOptions(): array{
|
||||
return array_merge(parent::getOptions(),[
|
||||
'connection' => 'immongodb',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user