work on steps

This commit is contained in:
2022-11-24 15:35:29 -05:00
parent 7195c7fba6
commit 85c4559d1f
10 changed files with 341 additions and 191 deletions

View File

@ -5,13 +5,16 @@ defmodule Memex.Repo.Migrations.CreateSteps do
create table(:steps, primary_key: false) do
add :id, :binary_id, primary_key: true
add :title, :string
add :description, :text
add :content, :text
add :position, :integer
add :pipeline_id, references(:pipelines, on_delete: :nothing, type: :binary_id)
add :user_id, references(:users, on_delete: :nothing, type: :binary_id)
timestamps()
end
create index(:steps, [:pipeline_id])
create index(:steps, [:user_id])
end
end