Generate schema and live_view scaffold for records

1. Records are not yet tied to artists
2. The generated edit route, along with related functionality, may be
   deleted as I don't think it's gonna be needed. Leaving it included in
   the commit for reference.
This commit is contained in:
Claudio Ortolina
2024-09-12 14:42:15 +01:00
parent 34111a44ba
commit e08fbe3740
12 changed files with 603 additions and 0 deletions
@@ -0,0 +1,17 @@
defmodule MusicLibrary.Repo.Migrations.CreateRecords do
use Ecto.Migration
def change do
create table(:records, primary_key: false) do
add :id, :binary_id, primary_key: true
add :type, :string
add :title, :string
add :musicbrainz_id, :uuid
add :year, :integer
add :genres, {:array, :string}
add :image, :string
timestamps(type: :utc_datetime)
end
end
end