refactor(models): convert to json format per database-table-definition-spec

This commit is contained in:
yumoqing 2026-05-27 13:23:27 +08:00
parent 92f5552561
commit 74e14831ec
9 changed files with 128 additions and 44 deletions

View File

@ -3,7 +3,9 @@
{
"name": "harnessed_agent_config",
"title": "Hermes Agent module configuration settings",
"primary": "id"
"primary": [
"id"
]
}
],
"fields": [
@ -69,7 +71,7 @@
"name": "auto_cleanup_enabled",
"title": "Enable automatic memory cleanup",
"type": "str",
"length": "1",
"length": 1,
"nullable": "no",
"default": "1"
},
@ -110,7 +112,7 @@
"name": "enable_streaming",
"title": "Enable streaming response for LLM calls",
"type": "str",
"length": "1",
"length": 1,
"nullable": "no",
"default": "1"
},
@ -166,7 +168,9 @@
{
"name": "idx_user_agent_config",
"idxtype": "index",
"idxfields": ["user_id"]
"idxfields": [
"user_id"
]
}
],
"codes": []

View File

@ -3,7 +3,9 @@
{
"name": "hermes_executions",
"title": "Task execution records with user isolation",
"primary": "id",
"primary": [
"id"
],
"catelog": "relation"
}
],
@ -111,22 +113,34 @@
{
"name": "idx_hermes_executions_workflow",
"idxtype": "index",
"idxfields": ["workflow_id", "created_at"]
"idxfields": [
"workflow_id",
"created_at"
]
},
{
"name": "idx_hermes_executions_task",
"idxtype": "index",
"idxfields": ["task_id", "created_at"]
"idxfields": [
"task_id",
"created_at"
]
},
{
"name": "idx_hermes_executions_user",
"idxtype": "index",
"idxfields": ["user_id", "created_at"]
"idxfields": [
"user_id",
"created_at"
]
},
{
"name": "idx_hermes_executions_status",
"idxtype": "index",
"idxfields": ["execution_status", "created_at"]
"idxfields": [
"execution_status",
"created_at"
]
}
],
"codes": []

View File

@ -3,7 +3,9 @@
{
"name": "hermes_memory",
"title": "Persistent memory storage with user isolation and intelligent filtering",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],
@ -82,17 +84,25 @@
{
"name": "idx_hermes_memory_user",
"idxtype": "index",
"idxfields": ["user_id", "priority"]
"idxfields": [
"user_id",
"priority"
]
},
{
"name": "idx_hermes_memory_target",
"idxtype": "index",
"idxfields": ["target"]
"idxfields": [
"target"
]
},
{
"name": "idx_hermes_memory_priority",
"idxtype": "index",
"idxfields": ["priority", "last_accessed"]
"idxfields": [
"priority",
"last_accessed"
]
}
],
"codes": []

View File

@ -3,7 +3,9 @@
{
"name": "harnessed_remote_skills",
"title": "Remote skills SSH configuration with user isolation",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],
@ -155,17 +157,24 @@
{
"name": "idx_remote_skills_user",
"idxtype": "index",
"idxfields": ["user_id"]
"idxfields": [
"user_id"
]
},
{
"name": "idx_remote_skills_user_name",
"idxtype": "unique",
"idxfields": ["user_id", "name"]
"idxfields": [
"user_id",
"name"
]
},
{
"name": "idx_remote_skills_host",
"idxtype": "index",
"idxfields": ["host"]
"idxfields": [
"host"
]
}
],
"codes": []

View File

@ -3,7 +3,9 @@
{
"name": "hermes_sessions",
"title": "Session metadata with user isolation",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],
@ -95,12 +97,18 @@
{
"name": "idx_hermes_sessions_user",
"idxtype": "index",
"idxfields": ["user_id", "started_at"]
"idxfields": [
"user_id",
"started_at"
]
},
{
"name": "idx_hermes_sessions_active",
"idxtype": "index",
"idxfields": ["user_id", "is_active"]
"idxfields": [
"user_id",
"is_active"
]
}
],
"codes": []

View File

@ -3,7 +3,9 @@
{
"name": "hermes_skills",
"title": "Skills repository with user isolation",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],
@ -91,17 +93,25 @@
{
"name": "idx_hermes_skills_user",
"idxtype": "index",
"idxfields": ["user_id", "name"]
"idxfields": [
"user_id",
"name"
]
},
{
"name": "idx_hermes_skills_name",
"idxtype": "unique",
"idxfields": ["user_id", "name"]
"idxfields": [
"user_id",
"name"
]
},
{
"name": "idx_hermes_skills_category",
"idxtype": "index",
"idxfields": ["category"]
"idxfields": [
"category"
]
}
],
"codes": []

View File

@ -3,7 +3,9 @@
{
"name": "hermes_tasks",
"title": "Task definitions within workflows with user isolation",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],
@ -130,17 +132,25 @@
{
"name": "idx_hermes_tasks_workflow",
"idxtype": "index",
"idxfields": ["workflow_id", "order_index"]
"idxfields": [
"workflow_id",
"order_index"
]
},
{
"name": "idx_hermes_tasks_user",
"idxtype": "index",
"idxfields": ["user_id", "workflow_id"]
"idxfields": [
"user_id",
"workflow_id"
]
},
{
"name": "idx_hermes_tasks_depends",
"idxtype": "index",
"idxfields": ["depends_on"]
"idxfields": [
"depends_on"
]
}
],
"codes": []

View File

@ -3,7 +3,9 @@
{
"name": "hermes_workflows",
"title": "Workflow definitions with user isolation",
"primary": "id",
"primary": [
"id"
],
"catelog": "entity"
}
],
@ -100,12 +102,18 @@
{
"name": "idx_hermes_workflows_user",
"idxtype": "index",
"idxfields": ["user_id", "created_at"]
"idxfields": [
"user_id",
"created_at"
]
},
{
"name": "idx_hermes_workflows_status",
"idxtype": "index",
"idxfields": ["user_id", "status"]
"idxfields": [
"user_id",
"status"
]
}
],
"codes": []

View File

@ -3,7 +3,9 @@
{
"name": "task_dependencies",
"title": "Task dependency relationships within workflows",
"primary": "id",
"primary": [
"id"
],
"catelog": "relation"
}
],
@ -76,22 +78,31 @@
{
"name": "idx_task_dep_workflow",
"idxtype": "index",
"idxfields": ["workflow_id"]
"idxfields": [
"workflow_id"
]
},
{
"name": "idx_task_dep_dependent",
"idxtype": "index",
"idxfields": ["dependent_task_id"]
"idxfields": [
"dependent_task_id"
]
},
{
"name": "idx_task_dep_dependency",
"idxtype": "index",
"idxfields": ["dependency_task_id"]
"idxfields": [
"dependency_task_id"
]
},
{
"name": "idx_task_dep_unique",
"idxtype": "unique",
"idxfields": ["dependent_task_id", "dependency_task_id"]
"idxfields": [
"dependent_task_id",
"dependency_task_id"
]
}
],
"codes": []