working on db logic
Some checks failed
CI/CD Pipeline / build (push) Failing after 3s

This commit is contained in:
2026-03-12 15:01:33 -06:00
parent 399eb9f93f
commit 4dc4814b2f
21 changed files with 573 additions and 256 deletions

View File

@@ -1,13 +1,11 @@
defmodule ElixirAi.Data.ConversationSchema do
use Ecto.Schema
defstruct [:id, :name, :ai_provider_id, :inserted_at, :updated_at]
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "conversations" do
field(:name, :string)
belongs_to(:ai_provider, ElixirAi.Data.AiProviderSchema, type: :binary_id)
timestamps(type: :utc_datetime)
def schema do
Zoi.object(%{
id: Zoi.string(),
name: Zoi.string(),
ai_provider_id: Zoi.string()
})
end
end