hermes-web-cli/json/hermes_service_sessions.json
yumoqing 8ba95106e7 fix: Correct database table definitions according to specification
- Fix hermes_services.json with proper four-section format (summary/fields/indexes/codes)
- Fix hermes_service_sessions.json with proper four-section format
- Update CRUD definitions to match actual table fields
- Remove non-existent fields (user_id, api_key) from service table
- Add proper indexes and field constraints
- Follow database-table-definition-spec exactly
2026-04-21 16:22:22 +08:00

21 lines
493 B
JSON

{
"name": "hermes_service_sessions_crud",
"table": "hermes_service_sessions",
"operations": {
"create": {
"fields": ["service_id", "user_id", "session_data", "status"],
"required": ["service_id", "user_id"]
},
"read": {
"filters": ["service_id", "user_id", "status", "id"]
},
"update": {
"fields": ["session_data", "status"]
},
"delete": {
"soft_delete": true,
"field": "status",
"deleted_value": "closed"
}
}
}