Adatbázis: Gamification modell javítások (UserStats, PointsLedger) #324
Notifications
Total Time Spent: 20 minutes
kincses
20 minutes
No due date set.
Dependencies
No dependencies set.
Reference: kincses/service-finder#324
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mérföldkő: Epic 8 Gamification 2.0, Verseny és Önvéde
Cél: Hiányzó mezők hozzáadása a UserStats és PointsLedger modellekhez
🔗 Függőségek (Dependencies)
📝 Elemzés
A UserStats modellből hiányzik: services_submitted (Integer, default=0), total_points (Integer, default=0). A PointsLedger modellből hiányzik: xp (Integer, nullable), source_type (String(50), nullable), source_id (Integer, nullable). Ezeket a mezőket a gamification.py endpointok már használják, de a modellben nincsenek definiálva, ami potenciális runtime hibákhoz vezethet.
Feladatok:
▶️ Munka megkezdve: 2026-06-29 16:24:49
✅ Munka befejezve: 2026-06-29 16:45:13
Technikai Összefoglaló:
Adatbázis: Gamification modell javítások - UserStats és PointsLedger modellek kiegészítése hiányzó mezőkkel. UserStats: total_points, services_submitted. PointsLedger: xp, source_type, source_id. Sync Engine sikeresen futtatva, 5 új oszlop hozzáadva a gamification sémához.
⏱️ Az idő rögzítve.
✅ Gitea #324 - Gamification modell javítások - KÉSZ
Elvégzett módosítások
Módosított fájl:
backend/app/models/gamification/gamification.pyUserStats modell - 2 új mező:
total_points(Integer, default=0,server_default=text("0")) — összesített pontszámservices_submitted(Integer, default=0,server_default=text("0")) — beküldött szervizek számaPointsLedger modell - 3 új mező:
xp(Integer, nullable=True) — XP érték naplózásasource_type(String(50), nullable=True) — forrás típusa (pl.service_submission)source_id(Integer, nullable=True) — forrás rekord IDAdatbázis szinkronizáció
gamificationsémáhozGitea
.roo/history.md