refactor(models): unify table names to singular form for consistency across models
This commit is contained in:
@@ -19,12 +19,12 @@ class SoundPlayed(db.Model):
|
||||
# Foreign keys
|
||||
user_id: Mapped[int] = mapped_column(
|
||||
Integer,
|
||||
ForeignKey("users.id"),
|
||||
ForeignKey("user.id"),
|
||||
nullable=False,
|
||||
)
|
||||
sound_id: Mapped[int] = mapped_column(
|
||||
Integer,
|
||||
ForeignKey("sounds.id"),
|
||||
ForeignKey("sound.id"),
|
||||
nullable=False,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user