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