-- Create default customers for existing organizations that don't have one
INSERT INTO customers (organization_id, name, is_default, is_active, created_at, updated_at)
SELECT 
    o.id as organization_id,
    'Walk In Customer' as name,
    true as is_default,
    true as is_active,
    NOW() as created_at,
    NOW() as updated_at
FROM organizations o
WHERE NOT EXISTS (
    SELECT 1 FROM customers c 
    WHERE c.organization_id = o.id AND c.is_default = true
); 