Don't use primary key for scrobbled tracks embeds

This commit is contained in:
Claudio Ortolina
2025-10-22 16:51:55 +01:00
parent a30e1b32d7
commit bc5a0b9df1
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ defmodule LastFm.Album do
musicbrainz_id: String.t(),
title: String.t()
}
@primary_key false
embedded_schema do
field :musicbrainz_id, :string
field :title, :string
+1
View File
@@ -15,6 +15,7 @@ defmodule LastFm.Artist do
image_data_hash: String.t() | nil
}
@primary_key false
embedded_schema do
field :musicbrainz_id, :string
field :name, :string