Nodes
- id (big int)
- meta (jsonb)
- tags (jsonb)
- lat
- lng
Ways
- id (big int)
- meta (jsonb)
- tags (jsonb)
WaysMembers (Könnte auch ein Array sein, wenn Anfragen weiterhin performen)
- way_id (big int)
- node_id (big int)
- order (int)
Relations
- id (big int)
- meta (jsonb)
- tags (jsonb)
RelationMembers
- relation_id (big int)
- type (n, w, r)
- id (big int)
- role (varchar)
- order (int)
- Von Way auf alle Nodes die im Way beinhaltet sind
- Von Relation auf alle Members
- Von Node auf Ways, die die Node beinhalten
- Bin hier nicht sicher ob wir es brauchen, weil wenn sich Node geändert hat wurde der Way auch verändert.
- Von Node auf Relation, die die Node beinhaltet
- Relations werden aber nicht als Verändert makiert wenn sich die Node verändert hat.
- Von Way auf Relation, die den Way enthält