Adrian Flores Cortes
daabe5320a
feat(MMD-013): Add assets schema DDL
...
- 6 tables: asset_categories, assets, asset_assignments, asset_audits, asset_audit_items, asset_maintenance
- Multiple enums for status tracking
- RLS policies for multi-tenancy
- Triggers for automatic updates
- Views for common queries
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 01:44:49 -06:00
Adrian Flores Cortes
d72145f0b7
feat(MMD-014): Add GPS tracking schema
...
- Create gps_tracking schema with 5 tables
- Tables: gps_devices, gps_positions, geofences, geofence_events, route_segments
- Add PostGIS-compatible distance functions (haversine_distance)
- Add RLS policies for multi-tenant isolation
- Add views: vw_last_positions, vw_device_summary
- Add triggers for automatic last_position updates
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 01:33:57 -06:00
Adrian Flores Cortes
863ab28b09
[MMD-010] feat: Add fiados schema for customer credit management
...
- Create customer_credit_accounts table
- Create fiados table for credit sales
- Create fiado_payments table for payment tracking
- Add view v_customer_credit_summary
- Add indexes and RLS policies
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 08:22:30 -06:00
Adrian Flores Cortes
5cf220326a
[PROP-CORE-004] feat: Add payment_terminals schema DDL
...
Propagated from erp-core v1.5.0
Use: Cobro de servicios, venta refacciones mostrador
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 02:47:05 -06:00
Adrian Flores Cortes
ea5504966c
[TASK-029] security: Add RLS policies for 30 mecanicas tables
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 22:32:49 -06:00
5dd22878ea
chore: Add .gitignore for clean repository
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 07:31:53 -06:00
40371c6151
Migración desde erp-mecanicas-diesel/database - Estándar multi-repo v2
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 08:11:31 -06:00
971f579322
Initial commit
2026-01-16 14:04:56 +00:00