Add base infra to store assets

This commit is contained in:
Claudio Ortolina
2025-09-01 10:43:47 +03:00
parent 74fa3b7a6f
commit a605610c9d
4 changed files with 94 additions and 0 deletions
@@ -0,0 +1,14 @@
defmodule MusicLibrary.Repo.Migrations.CreateAssets do
use Ecto.Migration
def change do
create table(:assets, primary_key: false) do
add :hash, :string, primary_key: true
add :content, :binary, null: false
add :format, :string, null: false
add :properties, :map, default: %{}
timestamps(type: :utc_datetime)
end
end
end