[
        {
            "name": "name",
            "label": "Branch Name",
            "type": "text",
            "required": true
        },
        {
            "name": "code",
            "label": "Branch Code",
            "type": "text",
            "required": true
        },
        {
            "name": "type",
            "label": "Location Type",
            "type": "select",
            "required": true,
            "options": [
                {"value": "branch", "label": "Branch Office"},
                {"value": "store", "label": "Store/Outlet"},
                {"value": "warehouse", "label": "Warehouse"},
                {"value": "transit", "label": "In Transit"}
            ]
        },
        {
            "name": "parent_branch_id",
            "label": "Parent Branch",
            "type": "select",
            "required": false,
            "options_table": "branches",
            "options_label_column": "name",
            "options_value_column": "branch_id",
            "options_where": "isDeleted = false",
            "help_text": "Leave empty for top-level branch. Select a parent to create a child branch (enables automatic inventory transfers between related branches)."
        },
        {
            "name": "address",
            "label": "Address",
            "type": "textarea",
            "required": false,
            "colspan": 2
        }
    ]