Compare commits
4 Commits
01a7b7282a
...
f7ec7d052a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7ec7d052a | ||
|
|
ac2e811ed6 | ||
|
|
0737c58dff | ||
|
|
fabf3e18bf |
@ -90,11 +90,11 @@ class PlaylistRowsTable(Model):
|
|||||||
__tablename__ = "playlist_rows"
|
__tablename__ = "playlist_rows"
|
||||||
|
|
||||||
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
row_number: Mapped[int]
|
row_number: Mapped[int] = mapped_column(index=True)
|
||||||
note: Mapped[str] = mapped_column(
|
note: Mapped[str] = mapped_column(
|
||||||
String(2048), index=False, default="", nullable=False
|
String(2048), index=False, default="", nullable=False
|
||||||
)
|
)
|
||||||
playlist_id: Mapped[int] = mapped_column(ForeignKey("playlists.id"))
|
playlist_id: Mapped[int] = mapped_column(ForeignKey("playlists.id"), index=True)
|
||||||
playlist: Mapped[PlaylistsTable] = relationship(back_populates="rows")
|
playlist: Mapped[PlaylistsTable] = relationship(back_populates="rows")
|
||||||
track_id: Mapped[Optional[int]] = mapped_column(ForeignKey("tracks.id"))
|
track_id: Mapped[Optional[int]] = mapped_column(ForeignKey("tracks.id"))
|
||||||
track: Mapped["TracksTable"] = relationship(
|
track: Mapped["TracksTable"] = relationship(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user