Commit Graph

4 Commits

Author SHA1 Message Date
Adrian Flores Cortes
9baaf4af85 fix(rbac): Make role.slug NOT NULL to match DDL
- Updated role.entity.ts: slug is now required (NOT NULL)
- Updated rbac.service.ts: generate slug from code when creating roles
- Tenant entity already complete with all DDL fields (no changes needed)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 14:24:41 -06:00
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
dfe6a715f0 Initial commit - Backend de template-saas migrado desde monorepo
Migración desde workspace-v2/projects/template-saas/apps/backend
Este repositorio es parte del estándar multi-repo v2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 08:07:11 -06:00