The Infrastructure component defines the core entities for representing general infrastructure elements and their types. It provides a flexible structure for categorizing and storing spatial features that do not fit into more specific categories like buildings or roads.
Entities from sql/1-infrastructure.sql:
infrastructure_type: Lookup table for different types of infrastructure (e.g., bridge, dam, tower).infrastructure: Represents individual infrastructure elements, with geometry and a reference toinfrastructure_type.
erDiagram
infrastructure_type {
UUID uuid PK
TEXT name
TIMESTAMP last_update
TEXT last_update_by
}
infrastructure {
UUID uuid PK
UUID infrastructure_type_uuid FK
GEOMETRY geometry
TEXT name
TIMESTAMP last_update
TEXT last_update_by
}
infrastructure_type ||--o{ infrastructure : "has many"
🤖 Prompt: Add a subsection to ## Components which provides
- SubHeading: Electricity
- Image: img/electricity.png
- Text: Summary of the entities in sql/2-electricity.sql
- Mermaid: Diagram of the entities in sql/2-electricity.sql
