Remove queries table definition

It mistakenly was introduced to the wrong branch. It persists on the
query_tabs branch.
This commit is contained in:
Keith Edmunds 2025-02-22 20:13:44 +00:00
parent c1448dfdd5
commit 9e27418f80

View File

@ -80,9 +80,6 @@ class PlaylistsTable(Model):
cascade="all, delete-orphan",
order_by="PlaylistRowsTable.row_number",
)
query: Mapped["QueriesTable"] = relationship(
back_populates="playlist", cascade="all, delete-orphan"
)
def __repr__(self) -> str:
return (
@ -121,20 +118,6 @@ class PlaylistRowsTable(Model):
)
class QueriesTable(Model):
__tablename__ = "queries"
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
query: Mapped[str] = mapped_column(
String(2048), index=False, default="", nullable=False
)
playlist_id: Mapped[int] = mapped_column(ForeignKey("playlists.id"), index=True)
playlist: Mapped[PlaylistsTable] = relationship(back_populates="query")
def __repr__(self) -> str:
return f"<Queries(id={self.id}, playlist={self.playlist}, query={self.query}>"
class SettingsTable(Model):
"""Manage settings"""