Add MusicLibrary.Notes.Note

This commit is contained in:
Claudio Ortolina
2025-09-07 09:08:35 +03:00
parent f5ac213d65
commit 55ab648b1c
2 changed files with 40 additions and 0 deletions
@@ -0,0 +1,16 @@
defmodule MusicLibrary.Repo.Migrations.CreateNotes do
use Ecto.Migration
def change do
create table(:notes, primary_key: false) do
add :id, :binary_id, primary_key: true
add :entity, :string, null: false
add :musicbrainz_id, :uuid, null: false
add :content, :string
timestamps(type: :utc_datetime)
end
create index(:notes, [:entity, :musicbrainz_id], unique: true)
end
end