Commit Graph

1 Commits

Author SHA1 Message Date
Urtzi Alfaro
f9d0eec6ec fix(demo): Add SQL script to repair enterprise demo tenants
Repairs enterprise demo tenants created before naming standardization that have:
- Missing TenantMember records (causing has_access: false)
- Wrong owner_id (María instead of Carlos)
- Old business_model values (enterprise_parent/enterprise_chain)

This fixes tenant 3fe07312-b325-4b40-97dd-c8d1c0a67ec7 which was returning
has_access: false because it had no tenant_members records.

The script:
1. Updates tenant to use correct enterprise owner (Carlos)
2. Standardizes business_model to 'enterprise'
3. Creates all required TenantMember records (owner + 6 staff)

Applied successfully - tenant now has 7 members including owner.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 08:51:51 +01:00