{
        "table": "clarification_requests",
        "primaryKey": "clarification_id",
        "clientFilter": "client_user_id",
        "list": {
            "title": "My Clarification Requests",
            "description": "Request clarifications or changes to quotations and invoices",
            "dataSource": "/api/clarifications/my-clarifications",
            "autoRefresh": 30000,
            "emptyMessage": "You have no clarification requests",
            "columns": [
                {
                    "field": "subject",
                    "label": "Subject",
                    "sortable": true,
                    "searchable": true
                },
                {
                    "field": "reference_table",
                    "label": "Regarding",
                    "render": "capitalize",
                    "sortable": true
                },
                {
                    "field": "reference_number",
                    "label": "Number",
                    "computed": true
                },
                {
                    "field": "status",
                    "label": "Status",
                    "render": "badge",
                    "sortable": true
                },
                {
                    "field": "priority",
                    "label": "Priority",
                    "render": "badge"
                },
                {
                    "field": "created_at",
                    "label": "Created",
                    "render": "datetime",
                    "sortable": true
                }
            ],
            "filters": [
                {
                    "field": "status",
                    "label": "Status",
                    "type": "select",
                    "options": [
                        {"value": "all", "label": "All Requests"},
                        {"value": "open", "label": "Open"},
                        {"value": "responded", "label": "Responded"},
                        {"value": "resolved", "label": "Resolved"},
                        {"value": "closed", "label": "Closed"}
                    ]
                }
            ],
            "actions": [
                {
                    "label": "New Request",
                    "icon": "fa-plus",
                    "action": "openModal",
                    "modalId": "clarification-create",
                    "class": "btn-primary"
                }
            ],
            "rowActions": [
                {
                    "label": "View Conversation",
                    "icon": "fa-comments",
                    "action": "openModal",
                    "modalId": "clarification-detail",
                    "class": "btn-sm"
                }
            ]
        },
        "detail": {
            "modalId": "clarification-detail",
            "title": "Clarification Request",
            "size": "large",
            "readonly": false,
            "sections": [
                {
                    "title": "Request Details",
                    "fields": [
                        {"name": "subject", "label": "Subject", "type": "text", "readonly": true},
                        {"name": "reference_table", "label": "Regarding", "type": "text", "readonly": true},
                        {"name": "status", "label": "Status", "type": "text", "readonly": true},
                        {"name": "created_at", "label": "Created", "type": "datetime", "readonly": true}
                    ]
                },
                {
                    "title": "Conversation",
                    "component": "ConversationThread",
                    "componentConfig": {
                        "table": "clarification_responses",
                        "foreignKey": "clarification_id",
                        "allowReply": true,
                        "realtimeUpdates": true
                    }
                }
            ],
            "actions": {
                "view": [
                    {
                        "label": "Close",
                        "action": "cancel"
                    }
                ]
            }
        },
        "create": {
            "modalId": "clarification-create",
            "title": "New Clarification Request",
            "size": "medium",
            "sections": [
                {
                    "title": "Request Information",
                    "fields": [
                        {
                            "name": "reference_table",
                            "label": "Regarding",
                            "type": "select",
                            "required": true,
                            "options": [
                                {"value": "quotations", "label": "Quotation"},
                                {"value": "invoices", "label": "Invoice"}
                            ]
                        },
                        {
                            "name": "reference_id",
                            "label": "Select Document",
                            "type": "select",
                            "required": true,
                            "dataSource": "/api/clarifications/my-documents",
                            "dependsOn": "reference_table"
                        },
                        {
                            "name": "subject",
                            "label": "Subject",
                            "type": "text",
                            "required": true,
                            "placeholder": "Brief description of your request"
                        },
                        {
                            "name": "message",
                            "label": "Message",
                            "type": "textarea",
                            "required": true,
                            "rows": 6,
                            "placeholder": "Please describe your clarification request in detail..."
                        },
                        {
                            "name": "priority",
                            "label": "Priority",
                            "type": "select",
                            "default": "normal",
                            "options": [
                                {"value": "normal", "label": "Normal"},
                                {"value": "high", "label": "High"}
                            ]
                        }
                    ]
                }
            ],
            "actions": {
                "create": [
                    {
                        "label": "Submit Request",
                        "action": "save",
                        "class": "btn-primary"
                    },
                    {
                        "label": "Cancel",
                        "action": "cancel"
                    }
                ]
            }
        }
    }