fix(user): last_visit is nullable

This commit is contained in:
MingxuanGame
2025-08-02 15:02:12 +00:00
parent 5ccb35dc8b
commit 0f1a57afba

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