fix(event): failed to find name User

This commit is contained in:
MingxuanGame
2025-08-12 16:06:27 +00:00
parent b5afbed36c
commit f274ba15b9
2 changed files with 2 additions and 4 deletions

View File

@@ -156,8 +156,8 @@ class User(AsyncAttrs, UserBase, table=True):
rank_history: list[RankHistory] = Relationship(
back_populates="user",
)
events: list[Event] = Relationship(back_populates="user")
events: list["Event"] = Relationship(back_populates="user")
email: str = Field(max_length=254, unique=True, index=True, exclude=True)
priv: int = Field(default=1, exclude=True)
pw_bcrypt: str = Field(max_length=60, exclude=True)