Added migrations, each creating a new database table

This commit is contained in:
Alex Tavarez
2025-07-25 11:30:28 -04:00
parent 043f85580a
commit 8eeeee3090
4 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
defmodule Sukaato.Repo.Migrations.CreateFolios do
use Ecto.Migration
def change do
create table(:folios) do
add :resume, :map
add :showcase, :map
add :theme_uri, :string
add :user_id, references(:users, on_delete: :nothing)
timestamps(type: :utc_datetime)
end
create index(:folios, [:user_id])
end
end