Commit Graph

11 Commits

Author SHA1 Message Date
1f9d876bc3 feat: implement tenant management system including database schema, CRUD services, and bootstrap functionality 2026-06-26 12:16:50 -03:00
0dae985230 feat: implement tenant management system including CRUD operations and domain bootstrapping functionality 2026-06-26 11:55:05 -03:00
aec92d5346 feat(attachments): implement AttachmentService for managing uploads and deletions, add AttachmentStorageException for error handling 2026-06-25 15:02:52 -03:00
b874a45724 feat(attachments): create Attachment model and migration for file attachments 2026-06-25 12:07:52 -03:00
689d115a8f feat(tenant): reintroduce tenant-specific props and instance values
Restore props support only for the Tenant domain using a tenant-scoped model
instead of the removed generic Prop/Propable implementation.

Add tenant prop definitions and instance values:
- add TenantProp and TenantPropValue models
- add tenant-only data type enum and prop validation rules
- add migrations for tenant_props and tenant_prop_values tables
- persist prop values by tenant_codigo + tenant_prop_codigo

Expose tenant prop management through the Tenant domain:
- add TenantPropController with CRUD endpoints
- add Store/Update request classes for tenant prop definitions
- register tenant-props routes

Re-enable tenant prop syncing and serialization:
- restore createWithProps/updateWithProps flows in Tenant
- validate props on tenant create/update requests
- include collapsed props in TenantResource
- keep the implementation scoped to Tenant without reintroducing polymorphic props

Add coverage for the new tenant prop behavior:
- update bootstrap tenant feature test to assert prop values
- add feature tests for tenant prop creation and validation
2026-06-24 14:50:58 -03:00
75129b7552 remove props 2026-06-24 14:43:10 -03:00
8feaa0051d Implement Product management features with controller, requests, resource, and routes 2026-06-24 10:05:26 -03:00
894f2a68de Implement Propable trait in Brand, Category, Product, and Tenant models to manage properties; remove unused code in Tenant model. 2026-06-22 12:21:30 -03:00
93ebb0a110 Refactor Brand, Category, Product, and ModelPropValue models to remove morph relationships; update migration files for props and model prop values to reflect new foreign key structure. 2026-06-22 12:15:12 -03:00
5c81d6997a Add Prop and ModelPropValue models with relationships; create migration files for props, prop options, prop data types, and model prop values 2026-06-22 12:07:46 -03:00
93a2750d33 Refactor project structure to use domain-oriented architecture; add Product and Tenant domains with controllers, models, requests, resources, and routes 2026-06-19 11:59:28 -03:00