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 f475b2f731
commit e99312967d
2 changed files with 26 additions and 11 deletions

View File

@ -3,7 +3,9 @@
{ {
"name": "harnessed_reasoning_config", "name": "harnessed_reasoning_config",
"title": "Hermes Reasoning module configuration settings", "title": "Hermes Reasoning module configuration settings",
"primary": "id" "primary": [
"id"
]
} }
], ],
"fields": [ "fields": [
@ -39,7 +41,7 @@
"name": "enable_cross_session_search", "name": "enable_cross_session_search",
"title": "Enable automatic session search", "title": "Enable automatic session search",
"type": "str", "type": "str",
"length": "1", "length": 1,
"nullable": "no", "nullable": "no",
"default": "1" "default": "1"
}, },
@ -47,7 +49,7 @@
"name": "enable_skill_auto_loading", "name": "enable_skill_auto_loading",
"title": "Enable automatic skill loading", "title": "Enable automatic skill loading",
"type": "str", "type": "str",
"length": "1", "length": 1,
"nullable": "no", "nullable": "no",
"default": "1" "default": "1"
}, },
@ -55,7 +57,7 @@
"name": "safety_mode", "name": "safety_mode",
"title": "Safety mode: strict, moderate, lenient", "title": "Safety mode: strict, moderate, lenient",
"type": "str", "type": "str",
"length": "20", "length": 20,
"nullable": "no", "nullable": "no",
"default": "strict" "default": "strict"
}, },
@ -70,7 +72,7 @@
"name": "enable_error_recovery", "name": "enable_error_recovery",
"title": "Enable automatic error recovery", "title": "Enable automatic error recovery",
"type": "str", "type": "str",
"length": "1", "length": 1,
"nullable": "no", "nullable": "no",
"default": "1" "default": "1"
}, },
@ -161,7 +163,9 @@
{ {
"name": "idx_user_config", "name": "idx_user_config",
"idxtype": "index", "idxtype": "index",
"idxfields": ["user_id"] "idxfields": [
"user_id"
]
} }
], ],
"codes": [] "codes": []

View File

@ -3,7 +3,9 @@
{ {
"name": "harnessed_reasoning_sessions", "name": "harnessed_reasoning_sessions",
"title": "Reasoning sessions with execution plans and context awareness", "title": "Reasoning sessions with execution plans and context awareness",
"primary": "id" "primary": [
"id"
]
} }
], ],
"fields": [ "fields": [
@ -82,17 +84,26 @@
{ {
"name": "idx_user_status", "name": "idx_user_status",
"idxtype": "index", "idxtype": "index",
"idxfields": ["user_id", "status"] "idxfields": [
"user_id",
"status"
]
}, },
{ {
"name": "idx_user_created", "name": "idx_user_created",
"idxtype": "index", "idxtype": "index",
"idxfields": ["user_id", "created_at"] "idxfields": [
"user_id",
"created_at"
]
}, },
{ {
"name": "idx_status_created", "name": "idx_status_created",
"idxtype": "index", "idxtype": "index",
"idxfields": ["status", "created_at"] "idxfields": [
"status",
"created_at"
]
} }
], ],
"codes": [] "codes": []