- Add orgid field (str32, not nullable) to hermes_services table - Replace user_id with orgid in all service CRUD operations (SQL + functions) - Update function signatures: get_all_services, create_service, delete_service, get_service_by_id, test_service_connection, create_session, send_message_to_service, get_session_messages all use orgid - Add orgid indexes: idx_hermes_services_orgid, idx_hermes_services_orgid_status - Add logined_userorgid filtering to CRUD definition for automatic framework-level isolation - Update all .dspy files to use get_userorgid() for org-scoped service queries - Update init/data.json and db_tables.py to reflect orgid field
25 lines
839 B
JSON
25 lines
839 B
JSON
{
|
|
"tblname": "hermes_services",
|
|
"title": "Hermes Services",
|
|
"params": {
|
|
"sortby": ["created_at desc"],
|
|
"logined_userorgid": "orgid",
|
|
"confidential_fields": ["apikey"],
|
|
"browserfields": {
|
|
"exclouded": ["id", "service_url", "created_at", "updated_at"],
|
|
"alters": {
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "pending", "text": "Pending"},
|
|
{"value": "active", "text": "Active"},
|
|
{"value": "inactive", "text": "Inactive"},
|
|
{"value": "error", "text": "Error"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": ["id", "created_at", "updated_at"],
|
|
"subtables": []
|
|
}
|
|
} |