fix(user): last_visit is nullable

This commit is contained in:
MingxuanGame
2025-08-02 15:02:12 +00:00
parent c83f950d13
commit 41631b839f

View File

@@ -66,7 +66,7 @@ class UserBase(UTCBaseModel, SQLModel):
is_active: bool = True
is_bot: bool = False
is_supporter: bool = False
last_visit: datetime = Field(
last_visit: datetime | None = Field(
default=datetime.now(UTC), sa_column=Column(DateTime(timezone=True))
)
pm_friends_only: bool = False