prueba columns

This commit is contained in:
2026-02-02 01:58:30 -06:00
parent 4f484779d8
commit e06941fd02
5 changed files with 278 additions and 48 deletions

View File

@@ -292,7 +292,9 @@ export async function getAll(
m.status, m.last_reading_value, m.last_reading_at, m.installation_date,
m.created_at, m.updated_at,
c.name as concentrator_name, c.serial_number as concentrator_serial,
c.project_id, p.name as project_name
c.project_id, p.name as project_name,
m.protocol, m.voltage, m.signal, m.leakage_status, m.burst_status,
m.current_flow, m.total_flow_reverse, m.manufacturer, m.latitude, m.longitude
FROM meters m
JOIN concentrators c ON m.concentrator_id = c.id
JOIN projects p ON c.project_id = p.id