berrypod/priv/repo/migrations/20260128235845_create_provider_connections.exs
jamey 9528700862 rename project from SimpleshopTheme to Berrypod
All modules, configs, paths, and references updated.
836 tests pass, zero warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 21:23:15 +00:00

21 lines
644 B
Elixir

defmodule Berrypod.Repo.Migrations.CreateProviderConnections do
use Ecto.Migration
def change do
create table(:provider_connections, primary_key: false) do
add :id, :binary_id, primary_key: true
add :provider_type, :string, null: false
add :name, :string, null: false
add :enabled, :boolean, default: true, null: false
add :api_key_encrypted, :binary
add :config, :map, default: %{}
add :last_synced_at, :utc_datetime
add :sync_status, :string, default: "pending"
timestamps(type: :utc_datetime)
end
create unique_index(:provider_connections, [:provider_type])
end
end