Adrian Flores Cortes
d72bc4da04
fix(entities): Align User, Tenant, Role entities with DDL schema
...
- User entity: Add display_name, phone_verified, is_owner, password_changed_at,
failed_login_attempts, locked_until, preferences, last_activity_at,
created_by, updated_by, deleted_at fields
- Tenant entity: Add subscription_status, stripe_customer_id,
stripe_subscription_id, subscription_ends_at, created_by, updated_by,
deleted_at fields. Fix logo_url length (255→500)
- Role entity: Add slug, permissions, parent_role_id, level, created_by fields.
Fix name length (50→100)
- Update test mocks to include new entity fields
Ensures DDL↔Backend coherence as per TRIGGER-COHERENCIA-CAPAS
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:57:32 -06:00
Adrian Flores Cortes
a881c5cc2b
[TASK-007] fix: Sync entities with DDL - add missing fields
...
- user.entity: Add display_name, phone_verified, is_owner, password_changed_at,
failed_login_attempts, locked_until, preferences, last_activity_at
- role.entity: Add slug, permissions, parent_role_id, level for hierarchy
- tenant.entity: Add subscription_status, stripe_customer_id,
stripe_subscription_id, subscription_ends_at, deleted_at
Closes DDL↔Backend coherence gaps identified in TASK-007 analysis.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 12:30:39 -06:00