fix(score): remove foreign key to fix missing index error
This commit is contained in:
@@ -29,9 +29,7 @@ class BestScore(SQLModel, table=True):
|
|||||||
)
|
)
|
||||||
beatmap_id: int = Field(foreign_key="beatmaps.id", index=True)
|
beatmap_id: int = Field(foreign_key="beatmaps.id", index=True)
|
||||||
gamemode: GameMode = Field(index=True)
|
gamemode: GameMode = Field(index=True)
|
||||||
total_score: int = Field(
|
total_score: int = Field(default=0, sa_column=Column(BigInteger))
|
||||||
default=0, sa_column=Column(BigInteger, ForeignKey("scores.total_score"))
|
|
||||||
)
|
|
||||||
mods: list[str] = Field(
|
mods: list[str] = Field(
|
||||||
default_factory=list,
|
default_factory=list,
|
||||||
sa_column=Column(JSON),
|
sa_column=Column(JSON),
|
||||||
|
|||||||
Reference in New Issue
Block a user