Skip to content

Commit

Permalink
userpage_content nullability
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jul 8, 2024
1 parent e5f48c1 commit e7d1cdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/models/users.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
from datetime import datetime

from pydantic import BaseModel

from app.common_types import GameMode
from app.common_types import UserPlayStyle


class TournamentBadge(BaseModel):
id: int
name: str
icon: str


class CustomBadge(BaseModel):
name: str
icon: str


class Badge(BaseModel):
id: int
name: str
icon: str
colour: str


class User(BaseModel):
id: int
username: str
username_aka: str
created_at: datetime
latest_activity: datetime
userpage_content: str
userpage_content: str | None
country: str
clan_id: int
followers: int
Expand Down
2 changes: 1 addition & 1 deletion app/repositories/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class User(BaseModel):
username_aka: str
created_at: datetime
latest_activity: datetime
userpage_content: str
userpage_content: str | None
country: str
privileges: UserPrivileges
hashed_password: str
Expand Down

0 comments on commit e7d1cdc

Please sign in to comment.