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:
@@ -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
|
||||
Reference in New Issue
Block a user