Commit Graph

71 Commits

Author SHA1 Message Date
ncoronel 56b87f0c12 feat(attachments): add AttachmentType enum and update Attachment model to use it 2026-06-25 14:44:44 -03:00
ncoronel 9c5a29d933 feat(attachments): add 'key' field to Attachment model and migration, generate UUID on creation 2026-06-25 14:31:03 -03:00
ncoronel 740566b02d refactor(attachments): remove is_public field from Attachment model and migration 2026-06-25 12:16:51 -03:00
ncoronel b874a45724 feat(attachments): create Attachment model and migration for file attachments 2026-06-25 12:07:52 -03:00
ncoronel 70f51ac863 feat(purchase): add Purchase and PurchaseItem models with migrations for compras and compra_items tables 2026-06-25 10:34:33 -03:00
ncoronel 492c6c4ac2 feat(cart): implement cart management with add, update, and remove item functionalities 2026-06-25 10:24:45 -03:00
ncoronel a5b1539a80 feat(cart): create carritos and carrito_items tables with relationships 2026-06-25 10:08:29 -03:00
ncoronel c6e5177df1 feat(catalog): add tenant-scoped product attributes and variant definitions 2026-06-24 15:08:13 -03:00
ncoronel 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
ncoronel 75129b7552 remove props 2026-06-24 14:43:10 -03:00
ncoronel 8e343ea9c3 Add ProductVariant model and migration for productos_variantes table 2026-06-24 11:41:42 -03:00
ncoronel e4139d48aa Refactor request validation to use model-specific prop synchronization and add migrations for categories and brands 2026-06-24 11:02:35 -03:00
ncoronel 3c6469617b Add BootstrapTenantController and requests for tenant domain normalization; implement API route and tests 2026-06-23 09:49:54 -03:00
ncoronel 0847fe1a26 Remove TenantPropController, TenantProp model, and related requests; update API routes and migrations 2026-06-22 16:50:02 -03:00
ncoronel 55694b2048 Refactor Prop model to use enum for data types; remove PropDataType model and update related requests and migrations 2026-06-22 13:13:22 -03:00
ncoronel 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
ncoronel 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
ncoronel 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
ncoronel 507b81b54e Add Tenant model, controller, and migration; update Producto model to reference tenant_codigo 2026-06-19 11:34:10 -03:00
ncoronel aa49c82543 Add ProductController and Producto model with CRUD operations and migration 2026-06-18 10:13:03 -03:00
ncoronel 02ebe0f0ca initial commit 2026-06-18 10:09:24 -03:00