Enhance user profiles with character class feature: Add character class field to user model and update related API routes, UI components, and validation logic. This update improves user profile customization and leaderboard entries by allowing users to select and display their character class.
This commit is contained in:
@@ -28,6 +28,19 @@ enum EventStatus {
|
||||
PAST
|
||||
}
|
||||
|
||||
enum CharacterClass {
|
||||
WARRIOR
|
||||
MAGE
|
||||
ROGUE
|
||||
RANGER
|
||||
PALADIN
|
||||
ENGINEER
|
||||
MERCHANT
|
||||
SCHOLAR
|
||||
BERSERKER
|
||||
NECROMANCER
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(cuid())
|
||||
email String @unique
|
||||
@@ -42,6 +55,7 @@ model User {
|
||||
maxXp Int @default(5000)
|
||||
avatar String?
|
||||
bio String?
|
||||
characterClass CharacterClass?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
preferences UserPreferences?
|
||||
|
||||
Reference in New Issue
Block a user