Add :collection to chat entity enum

This commit is contained in:
Claudio Ortolina
2026-04-13 10:04:37 +01:00
parent 399c4e4a2a
commit 55be2a4bab
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ defmodule MusicLibrary.Chats.Chat do
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "chats" do
field :entity, Ecto.Enum, values: [:record, :artist]
field :entity, Ecto.Enum, values: [:record, :artist, :collection]
field :musicbrainz_id, Ecto.UUID
field :topic, :string
@@ -0,0 +1,8 @@
defmodule MusicLibrary.Repo.Migrations.AddCollectionEntityToChats do
use Ecto.Migration
# The entity column is a plain string in SQLite — no CHECK constraint to alter.
# This migration documents the addition of the :collection entity type.
def change do
end
end