27 lines
641 B
PHP
27 lines
641 B
PHP
|
|
<?php
|
||
|
|
namespace app\model\Openim;
|
||
|
|
|
||
|
|
use think\Model;
|
||
|
|
/**
|
||
|
|
* @property string $key
|
||
|
|
* @property string $value
|
||
|
|
* @property string $description
|
||
|
|
* @property datetime $create_time
|
||
|
|
* @property datetime $update_time
|
||
|
|
*/
|
||
|
|
class Config extends \app\model\Base
|
||
|
|
{
|
||
|
|
protected $table = 'config';
|
||
|
|
protected $schema = [
|
||
|
|
'key' => 'string',
|
||
|
|
'value' => 'string',
|
||
|
|
'description' => 'string',
|
||
|
|
'create_time' => 'datetime',
|
||
|
|
'update_time' => 'datetime',
|
||
|
|
];
|
||
|
|
protected function getOptions(): array{
|
||
|
|
return array_merge(parent::getOptions(),[
|
||
|
|
'connection' => 'immongodb',
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|