mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-09-04 07:01:37 +08:00
feat(mcp): 新增 MCP 密钥/授权/日志三表 Scheme 与模型
This commit is contained in:
35
app/admin/scheme/SystemMcpLog.php
Normal file
35
app/admin/scheme/SystemMcpLog.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\scheme;
|
||||
|
||||
use app\common\scheme\BaseScheme;
|
||||
use app\common\scheme\attribute\Table;
|
||||
use app\common\scheme\attribute\Field;
|
||||
use app\common\scheme\attribute\Component;
|
||||
use app\common\scheme\attribute\Index;
|
||||
|
||||
#[Table(name: 'ul_system_mcp_log', comment: 'MCP调用日志表')]
|
||||
#[Index(columns: ['key_id'], name: 'key_id', type: 'NORMAL')]
|
||||
class SystemMcpLog extends BaseScheme
|
||||
{
|
||||
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
|
||||
public $id;
|
||||
|
||||
#[Field(type: 'bigint', length: 11, comment: '密钥ID', unsigned: true)]
|
||||
public $key_id;
|
||||
|
||||
#[Field(type: 'char', length: 100, precision: 100)]
|
||||
public $node;
|
||||
|
||||
#[Field(type: 'text', nullable: true, comment: '参数摘要JSON')]
|
||||
public $arguments;
|
||||
|
||||
#[Field(type: 'tinyint', length: 1, default: '1')]
|
||||
public $is_success;
|
||||
|
||||
#[Field(type: 'int', length: 11, default: '0')]
|
||||
public $cost_ms;
|
||||
|
||||
#[Field(type: 'int', length: 11, default: '0', comment: '创建时间', unsigned: true)]
|
||||
public $create_time;
|
||||
}
|
||||
Reference in New Issue
Block a user