Generate basic artist schema

This commit is contained in:
Claudio Ortolina
2024-09-12 14:33:57 +01:00
parent 8255e50e1d
commit 34111a44ba
2 changed files with 35 additions and 0 deletions
@@ -0,0 +1,14 @@
defmodule MusicLibrary.Repo.Migrations.CreateArtists do
use Ecto.Migration
def change do
create table(:artists, primary_key: false) do
add :id, :binary_id, primary_key: true
add :name, :string
add :musicbrainz_id, :uuid
add :image, :string
timestamps(type: :utc_datetime)
end
end
end