{
        "type": "legacy",
        "jsFile": "FrontEnd/js/modules/HRMSRecruitment.js",
        "controller": "HRMSController",
        "category": "Human Resources",
        "route": "/hrms-recruitment",
        "permissions": ["hrms.view", "hrms.manage"],
        "dataSources": {
            "job_postings": {
                "table": "job_postings",
                "columns": ["id", "job_code", "job_title", "department", "status", "application_deadline", "posted_at"],
                "filters": ["status", "department"],
                "searchable": ["job_title", "job_code", "department"]
            },
            "job_applications": {
                "table": "job_applications",
                "columns": ["id", "application_number", "applicant_id", "job_posting_id", "status", "stage", "application_date"],
                "filters": ["status", "stage"],
                "searchable": ["application_number"]
            },
            "applicants": {
                "table": "applicants",
                "columns": ["id", "first_name", "last_name", "email", "phone", "current_position"],
                "filters": ["is_blacklisted"],
                "searchable": ["first_name", "last_name", "email"]
            }
        },
        "views": [
            {
                "name": "job_postings",
                "label": "Job Postings",
                "type": "table",
                "dataSource": "job_postings",
                "rowActions": [
                    {"label": "View Applications", "icon": "fa-folder-open", "action": "hrms:view-applications"},
                    {"label": "Edit", "icon": "fa-edit", "action": "edit"},
                    {"label": "Close Posting", "icon": "fa-lock", "action": "hrms:close-posting", "condition": "status == \"published\""}
                ]
            },
            {
                "name": "applications",
                "label": "Applications",
                "type": "table",
                "dataSource": "job_applications",
                "rowActions": [
                    {"label": "Review", "icon": "fa-eye", "action": "hrms:review-application"},
                    {"label": "Schedule Interview", "icon": "fa-calendar", "action": "hrms:schedule-interview", "condition": "status == \"shortlisted\""},
                    {"label": "Send Offer", "icon": "fa-envelope", "action": "hrms:send-offer", "condition": "status == \"interviewed\""}
                ]
            },
            {
                "name": "candidates",
                "label": "Candidate Pool",
                "type": "table",
                "dataSource": "applicants"
            }
        ]
    }