28 lines
616 B
PHP
28 lines
616 B
PHP
<?php
|
|
namespace app\model\Openim;
|
|
|
|
use think\Model;
|
|
/**
|
|
* @property string $level
|
|
* @property string $message
|
|
* @property array $context
|
|
* @property array $extra
|
|
* @property datetime $timestamp
|
|
*/
|
|
class Log extends \app\model\Base
|
|
{
|
|
protected $table = 'log';
|
|
protected $schema = [
|
|
'level' => 'string',
|
|
'message' => 'string',
|
|
'context' => 'array',
|
|
'extra' => 'array',
|
|
'timestamp' => 'datetime',
|
|
];
|
|
protected function getOptions(): array
|
|
{
|
|
return array_merge(parent::getOptions(),[
|
|
'connection' => 'immongodb',
|
|
]);
|
|
}
|
|
} |