- 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>
- 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>
Propagated from erp-core v1.5.0 Use: Cobro de servicios, venta refacciones mostrador Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>