Skip to content

Conversation

@karastoyanov
Copy link
Contributor

@karastoyanov karastoyanov commented Jan 23, 2026

📝 Description

This PR introduces the foundational user domain models for the application.

The User model is responsible for authentication and core identity data, while the new UserStats model handles user progression metrics such as XP, level, and rank. A one-to-one relationship is established between the two models using a shared primary key to ensure data integrity and clean separation of concerns.

This structure improves scalability and prepares the backend for future features like achievements, leaderboards, and game-based progression systems.


🔗 Linked Issue (Required)

Closes: #9


🧪 Testing


🎓 Learning Reflection

  • N.A.

📸 Screenshots / Logs (if applicable)

- Introduced User model for authentication and core user data
- Added UserStats model to track XP, level, and rank
- Established one-to-one relationship between User and UserStats
- Separated user identity from progression data for better scalability

Signed-off-by: Aleksandar Karastoyanov <a.karastoyanov@utp.bg>
@karastoyanov karastoyanov marked this pull request as ready for review January 25, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] User Database Model Design (Authentication Foundation)

2 participants