add other device

This commit is contained in:
2025-12-14 21:08:38 +05:00
parent 61ba40c7d2
commit 7eaf1b3b86
8 changed files with 55 additions and 9 deletions

View File

@@ -16,15 +16,18 @@ class MapItem(Base):
- switch: Network switch
- indoor_ap: Indoor access point
- outdoor_ap: Outdoor access point
- other_device: Other device (1 ethernet port)
- info: Information marker
Geometry:
- Point for devices (switches, APs)
- Point for devices (switches, APs, other devices, info markers)
- LineString for cables and wireless mesh
Properties (JSONB):
- For cables: cable_type, name, notes, length_meters, start_device_id, end_device_id
- For devices: name, notes, port_count, connections (array of {cable_id, port_number})
- For wireless_mesh: name, notes, start_ap_id, end_ap_id
- For info markers: name, notes, image (optional)
"""
__tablename__ = "map_items"