init commit

This commit is contained in:
2022-08-30 02:41:31 -04:00
commit 559f6f959f
85 changed files with 3583 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
[
import_deps: [:ecto_sql],
inputs: ["*.exs"]
]

View File

@@ -0,0 +1,13 @@
defmodule Diffuser.Repo.Migrations.CreatePromptRequests do
use Ecto.Migration
def change do
create table(:prompt_requests, primary_key: false) do
add :id, :uuid, primary_key: true, null: false
add :prompt, :string
timestamps()
end
end
end

View File

@@ -0,0 +1,9 @@
defmodule Diffuser.Repo.Migrations.AddStatusToPromptRequest do
use Ecto.Migration
def change do
alter table(:prompt_requests) do
add :status, :string
end
end
end

View File

@@ -0,0 +1,13 @@
defmodule Diffuser.Repo.Migrations.CreatePromptRequestResult do
use Ecto.Migration
def change do
create table(:prompt_request_results, primary_key: false) do
add :id, :uuid, primary_key: true, null: false
add :image, :string
add :prompt_request_id, references(:prompt_requests, type: :uuid)
timestamps()
end
end
end