- Use proper root properties: tblname, title, params (not name/table/operations) - Implement list view structure with browserfields, editexclouded, etc. - Add status field dropdown options using uitype: code with data array - Exclude system fields (id, timestamps) from browser and edit views - Remove invalid operations structure that was previously used - Follow exact JSON format specified in crud-definition-spec
23 lines
822 B
JSON
23 lines
822 B
JSON
{
|
|
"tblname": "hermes_service_sessions",
|
|
"title": "Hermes Service Sessions",
|
|
"params": {
|
|
"sortby": ["created_at desc"],
|
|
"confidential_fields": [],
|
|
"browserfields": {
|
|
"exclouded": ["id", "service_id", "user_id", "session_data", "created_at", "updated_at", "closed_at"],
|
|
"alters": {
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "active", "text": "Active"},
|
|
{"value": "closed", "text": "Closed"},
|
|
{"value": "expired", "text": "Expired"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": ["id", "service_id", "user_id", "created_at", "updated_at", "closed_at"],
|
|
"subtables": []
|
|
}
|
|
} |