feat(vereinfacht): add DB schema, config and setting attributes

- Migrations: vereinfacht_contact_id on members, vereinfacht_* on settings
- Mv.Config: Vereinfacht ENV/Settings helpers, vereinfacht_configured?, contact_view_url
- Setting: vereinfacht_api_url, api_key, club_id
This commit is contained in:
Moritz 2026-02-18 22:28:32 +01:00
parent adea380d86
commit b775f5f5c4
Signed by: moritz
GPG key ID: 1020A035E5DD0824
6 changed files with 542 additions and 2 deletions

View file

@ -0,0 +1,21 @@
defmodule Mv.Repo.Migrations.AddVereinfachtContactIdToMembers do
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up do
alter table(:members) do
add :vereinfacht_contact_id, :text
end
end
def down do
alter table(:members) do
remove :vereinfacht_contact_id
end
end
end

View file

@ -0,0 +1,25 @@
defmodule Mv.Repo.Migrations.AddVereinfachtSettings do
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up do
alter table(:settings) do
add :vereinfacht_api_url, :text
add :vereinfacht_api_key, :text
add :vereinfacht_club_id, :text
end
end
def down do
alter table(:settings) do
remove :vereinfacht_club_id
remove :vereinfacht_api_key
remove :vereinfacht_api_url
end
end
end