playlist_best_scores: remove foreign key to allow to remove items

This commit is contained in:
MingxuanGame
2025-08-13 15:18:26 +00:00
parent 2e44951533
commit 858a7e8640
2 changed files with 42 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ class PlaylistBestScore(SQLModel, table=True):
sa_column=Column(BigInteger, ForeignKey("scores.id"), primary_key=True)
)
room_id: int = Field(foreign_key="rooms.id", index=True)
playlist_id: int = Field(foreign_key="room_playlists.id", index=True)
playlist_id: int = Field(index=True)
total_score: int = Field(default=0, sa_column=Column(BigInteger))
attempts: int = Field(default=0) # playlist