mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
feat: 新建 ai_agent_ext 表(agent 扩展字段 JSON)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c65a4fba96
commit
aca1518af5
2 changed files with 17 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
-- agent 扩展字段(键值对 JSON,作为 system_prompt 模板变量 {{ext.key}} 的来源)
|
||||
CREATE TABLE `ai_agent_ext` (
|
||||
`agent_id` VARCHAR(32) NOT NULL COMMENT '关联 agent(一对一)',
|
||||
`ext_json` TEXT COMMENT '扩展字段 JSON 对象 {key:value}',
|
||||
`creator` BIGINT DEFAULT NULL,
|
||||
`create_date` DATETIME DEFAULT NULL,
|
||||
`updater` BIGINT DEFAULT NULL,
|
||||
`update_date` DATETIME DEFAULT NULL,
|
||||
PRIMARY KEY (`agent_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='agent 扩展字段';
|
||||
|
|
@ -669,3 +669,10 @@ databaseChangeLog:
|
|||
- sqlFile:
|
||||
encoding: utf8
|
||||
path: classpath:db/changelog/202606281000.sql
|
||||
- changeSet:
|
||||
id: 202607011000
|
||||
author: aipet
|
||||
changes:
|
||||
- sqlFile:
|
||||
encoding: utf8
|
||||
path: classpath:db/changelog/202607011000.sql
|
||||
|
|
|
|||
Loading…
Reference in a new issue