Remove queries table definition
It mistakenly was introduced to the wrong branch. It persists on the query_tabs branch.
This commit is contained in:
parent
c1448dfdd5
commit
9e27418f80
@ -80,9 +80,6 @@ class PlaylistsTable(Model):
|
|||||||
cascade="all, delete-orphan",
|
cascade="all, delete-orphan",
|
||||||
order_by="PlaylistRowsTable.row_number",
|
order_by="PlaylistRowsTable.row_number",
|
||||||
)
|
)
|
||||||
query: Mapped["QueriesTable"] = relationship(
|
|
||||||
back_populates="playlist", cascade="all, delete-orphan"
|
|
||||||
)
|
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return (
|
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):
|
class SettingsTable(Model):
|
||||||
"""Manage settings"""
|
"""Manage settings"""
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user