Add infrastructure to persist scrobble tracks to database

Unused for now.
This commit is contained in:
Claudio Ortolina
2025-05-31 08:16:32 +01:00
parent 46ffa375af
commit d01d16f1ae
2 changed files with 18 additions and 2 deletions
@@ -0,0 +1,16 @@
defmodule MusicLibrary.Repo.Migrations.CreateScrobbledTracks do
use Ecto.Migration
def change do
create table(:scrobbled_tracks, primary_key: false) do
add :scrobbled_at_uts, :integer, primary_key: true
add :musicbrainz_id, :string
add :title, :string
add :cover_url, :string
add :scrobbled_at_label, :string
add :artist, :map
add :album, :map
add :last_fm_data, :map
end
end
end