-- DEBUG: Check what's in edit_requests table for Will 199's client

-- Step 1: Find client for Will 199
SELECT id FROM wills WHERE id = 199;
-- Result should show client_id

-- Step 2: Get all edit requests for that client
-- Replace [CLIENT_ID] with the result from Step 1
SELECT 
    id,
    client_id,
    status,
    section_type,
    sections_json,
    package_ids_json,
    payment_status,
    approved_at,
    created_at,
    updated_at
FROM edit_requests 
WHERE client_id = [CLIENT_ID]
ORDER BY created_at DESC
LIMIT 10;

-- This will show you exactly what data is stored in the edit_requests table

-- Expected output should show:
-- - If sections_json has data: ["assets", "liabilities"]
-- - Or section_type has value: "assets"
-- - Or package_ids_json has IDs: [1, 2, 3]
