refactor(models)!: Score & ChartInfo column changed

This commit is contained in:
2023-08-31 22:12:02 +08:00
parent 01bfd0f350
commit 167f72f9bb
6 changed files with 35 additions and 21 deletions

View File

@ -156,7 +156,7 @@ class ChartInfo(SongsBase):
constant: Mapped[int] = mapped_column(
comment="real_constant * 10. For example, Crimson Throne [FTR] is 10.4, then store 104 here."
)
note: Mapped[Optional[int]]
notes: Mapped[Optional[int]]
class SongsViewBase(DeclarativeBase, ReprHelper):
@ -193,7 +193,7 @@ class Chart(SongsViewBase):
jacket_override: Mapped[bool]
jacket_night: Mapped[Optional[str]]
constant: Mapped[int]
note: Mapped[Optional[int]]
notes: Mapped[Optional[int]]
__table__ = create_view(
name=__tablename__,
@ -225,7 +225,7 @@ class Chart(SongsViewBase):
Difficulty.jacket_override,
Difficulty.jacket_night,
ChartInfo.constant,
ChartInfo.note,
ChartInfo.notes,
)
.select_from(Difficulty)
.join(