No description
Find a file
Jannis 3cc4ae5699 init
Signed-off-by: Jannis <jannis@edu.tbz.ch>
2025-02-19 18:52:20 +00:00
.DS_Store init 2025-02-19 18:52:20 +00:00
aggregation_1.js init 2025-02-19 18:52:20 +00:00
cloud-init.yml init 2025-02-19 18:52:20 +00:00
create_data.js init 2025-02-19 18:52:20 +00:00
db.drawio init 2025-02-19 18:52:20 +00:00
db.js init 2025-02-19 18:52:20 +00:00
db.png init 2025-02-19 18:52:20 +00:00
delete_data_1.js init 2025-02-19 18:52:20 +00:00
delete_data_2.js init 2025-02-19 18:52:20 +00:00
Feldmann.Jannis.json init 2025-02-19 18:52:20 +00:00
join_aggregation.js init 2025-02-19 18:52:20 +00:00
read_data.js init 2025-02-19 18:52:20 +00:00
readme.md init 2025-02-19 18:52:20 +00:00
README.md init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.39.04.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.41.42.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.45.09.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.46.52.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.51.27.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.52.44.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.56.34.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.58.50.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.59.23.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 14.59.38.png init 2025-02-19 18:52:20 +00:00
Screenshot 2025-02-18 at 15.30.49.png init 2025-02-19 18:52:20 +00:00
unter_dokumente.js init 2025-02-19 18:52:20 +00:00
update_data.js init 2025-02-19 18:52:20 +00:00
user_creation.js init 2025-02-19 18:52:20 +00:00

A: Konzeptionelles Datenmodell

alt text

B: Logisches Modell für MongoDB

alt text Spiele werden als eigene collection gespeichert, weil sie von vielen Spielern referenziert werden und selten geändert werden. Das vermeidet auch duplikate.

Achievements werden häufig nach allen Spielern gefiltert, die sie erreicht haben. "errungen_von" speichert, welche Spieler ein Achievement erreicht haben.

C: Anwendung des Schemas in MongoDB

db.js