hermes-web-cli/models/hermes_services.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

79 lines
2.0 KiB
JSON

{
"summary": [
{
"name": "hermes_services",
"title": "Hermes Services",
"primary": "id",
"catelog": "entity"
}
],
"fields": [
{
"name": "id",
"title": "Service ID",
"type": "str",
"length": 32,
"nullable": "no",
"comments": "Primary key - UUID format"
},
{
"name": "name",
"title": "Service Name",
"type": "str",
"length": 255,
"nullable": "no",
"comments": "Hermes service display name"
},
{
"name": "service_url",
"title": "Service URL",
"type": "str",
"length": 512,
"nullable": "no",
"comments": "Base URL of the Hermes service endpoint"
},
{
"name": "description",
"title": "Description",
"type": "text",
"nullable": "yes",
"comments": "Service description"
},
{
"name": "status",
"title": "Status",
"type": "str",
"length": 32,
"nullable": "no",
"default": "pending",
"comments": "Service status: pending, active, inactive, error"
},
{
"name": "created_at",
"title": "Created At",
"type": "timestamp",
"nullable": "no",
"comments": "Record creation timestamp"
},
{
"name": "updated_at",
"title": "Updated At",
"type": "timestamp",
"nullable": "yes",
"comments": "Record last update timestamp"
}
],
"indexes": [
{
"name": "idx_hermes_services_name",
"idxtype": "index",
"idxfields": ["name"]
},
{
"name": "idx_hermes_services_status",
"idxtype": "index",
"idxfields": ["status"]
}
],
"codes": []
}