feat: Implement hash-first identification strategy in audio file syncing and enhance tests for renamed files
This commit is contained in:
@@ -34,7 +34,11 @@ class Sound(BaseModel, table=True):
|
||||
__table_args__ = (UniqueConstraint("hash", name="uq_sound_hash"),)
|
||||
|
||||
# relationships
|
||||
playlist_sounds: list["PlaylistSound"] = Relationship(back_populates="sound")
|
||||
playlist_sounds: list["PlaylistSound"] = Relationship(
|
||||
back_populates="sound", cascade_delete=True
|
||||
)
|
||||
extractions: list["Extraction"] = Relationship(back_populates="sound")
|
||||
play_history: list["SoundPlayed"] = Relationship(back_populates="sound")
|
||||
play_history: list["SoundPlayed"] = Relationship(
|
||||
back_populates="sound", cascade_delete=True
|
||||
)
|
||||
favorites: list["Favorite"] = Relationship(back_populates="sound")
|
||||
|
||||
Reference in New Issue
Block a user