{"id":"concord.network_device","schema":"concord","name":"network_device","properties":[{"name":"id","type":"int4","description":""},{"name":"global_id","type":"uuid","description":""},{"name":"device_id","type":"int4","description":""},{"name":"device_name","type":"varchar","description":"Freeform human alias (the \"alias\" role). Mirrored as the canonical display_name into fdp_allocation.device_name by fn_fdp_device_sync."},{"name":"clli_code","type":"varchar","description":""},{"name":"device_type","type":"varchar","description":""},{"name":"cabinet_id","type":"int4","description":""},{"name":"structure_id","type":"int4","description":""},{"name":"unit_location","type":"varchar","description":""},{"name":"serial_number","type":"varchar","description":""},{"name":"model","type":"varchar","description":""},{"name":"manufacturer","type":"varchar","description":""},{"name":"ip_address","type":"inet","description":""},{"name":"mac_address","type":"macaddr","description":""},{"name":"firmware_version","type":"varchar","description":""},{"name":"warranty_expiry","type":"date","description":""},{"name":"total_ports","type":"int2","description":""},{"name":"fiber_ports","type":"int2","description":""},{"name":"ethernet_ports","type":"int2","description":""},{"name":"fdp_id","type":"int4","description":""},{"name":"region","type":"varchar","description":""},{"name":"dms_direction","type":"int2","description":""},{"name":"is_portable","type":"bool","description":""},{"name":"date_installed","type":"date","description":""},{"name":"lifecycle_status","type":"int2","description":""},{"name":"construction_status","type":"int2","description":""},{"name":"spatial_source","type":"int2","description":""},{"name":"spatial_confidence","type":"int2","description":""},{"name":"owned_by","type":"int2","description":""},{"name":"maint_by","type":"int2","description":""},{"name":"project_id","type":"varchar","description":""},{"name":"project_description","type":"varchar","description":""},{"name":"notes","type":"text","description":""},{"name":"created_user","type":"varchar","description":""},{"name":"created_date","type":"timestamptz","description":""},{"name":"last_edited_user","type":"varchar","description":""},{"name":"last_edited_date","type":"timestamptz","description":""},{"name":"device_ntwk_chnl","type":"varchar","description":""},{"name":"project_fk","type":"int4","description":""},{"name":"row_version","type":"int4","description":""},{"name":"parent_device_id","type":"int4","description":""},{"name":"group_order","type":"int2","description":"The switch's position in its communication group, counted from the end that faces the core: 1 is the front door, the highest is the back door. An integer, because the group is already in device_ntwk_chnl and storing it twice is how the two drift apart (ticket 004). NULL with a group set means IN the group, not numbered yet — a deliberate answer, not a gap; NULL with no group means not placed at all. Only a switch carries one (common.device_type.carries_group); an attached device is load on the group."},{"name":"signal_id","type":"varchar","description":"NCDOT/agency signal ID (zero-padded). Populated when device_type=SIG_SW."},{"name":"subnet_mask","type":"varchar","description":""},{"name":"gateway","type":"inet","description":""},{"name":"stream_url","type":"text","description":""},{"name":"camera_type","type":"varchar","description":""},{"name":"mount_location","type":"varchar","description":""},{"name":"attach_height_ft","type":"float4","description":""},{"name":"description","type":"varchar","description":""},{"name":"future_ntwk_chnl","type":"varchar","description":""},{"name":"future_group_order","type":"int2","description":"The position this switch is planned to hold in future_ntwk_chnl. Written by Plan a move, promoted by Record as built, then cleared (ticket 002). Same three states as group_order."},{"name":"optics","type":"varchar","description":""},{"name":"optics_make","type":"varchar","description":""},{"name":"extras","type":"jsonb","description":""},{"name":"pay_item_code","type":"varchar","description":""},{"name":"port_profile_code","type":"varchar","description":"FK common.port_profile. NULL = L0 (no per-port modeling). Drives fn_device_generate_ports."},{"name":"device_model_code","type":"varchar","description":"FK common.device_model. Selecting a model defaults port_profile_code; manufacturer derived via join."},{"name":"service_domain","type":"_text","description":""},{"name":"device_slot","type":"varchar","description":"Per-CLLI slot token (prefix from common.device_type.slot_prefix, e.g. SW01). Trigger-assigned. NULL = type not auto-slotted."},{"name":"label","type":"varchar","description":"Canonical identity: clli_code-device_slot (bare slot when clli_code NULL). Generated."},{"name":"display_name","type":"varchar","description":"What traces / UIs render: device_name (freeform alias) if set, else label. Generated."},{"name":"field_verified_date","type":"date","description":""},{"name":"vms_name","type":"varchar","description":"Name this device carries inside the agency video management system (Genetec at CDOT). A cross-system key for matching FAMS to the VMS — not a display label; description holds the agency's own name."},{"name":"stream_port","type":"int4","description":"Port of the primary video stream, paired with stream_url which holds the multicast address."}],"geometrytype":"Point","center":[-80.61978149414062,35.39534950256348],"bounds":[-80.7641830444336,35.31215286254883,-80.47537994384766,35.478546142578125],"minzoom":0,"maxzoom":22,"tileurl":"https://pgtileserv-production-affe.up.railway.app/concord.network_device/{z}/{x}/{y}.pbf"}
