refactor(models): unify table names to singular form for consistency across models

This commit is contained in:
JSC
2025-07-05 18:11:19 +02:00
parent 21541c8184
commit 024c58f013
7 changed files with 12 additions and 12 deletions

View File

@@ -17,14 +17,14 @@ if TYPE_CHECKING:
class PlaylistSound(db.Model):
"""Model for playlist-sound relationships with ordering."""
__tablename__ = "playlist_sounds"
__tablename__ = "playlist_sound"
id: Mapped[int] = mapped_column(Integer, primary_key=True)
playlist_id: Mapped[int] = mapped_column(
Integer, ForeignKey("playlists.id"), nullable=False
Integer, ForeignKey("playlist.id"), nullable=False
)
sound_id: Mapped[int] = mapped_column(
Integer, ForeignKey("sounds.id"), nullable=False
Integer, ForeignKey("sound.id"), nullable=False
)
order: Mapped[int] = mapped_column(Integer, nullable=False)
added_at: Mapped[datetime] = mapped_column(