Add settings model (#54)

* Adds a basic settings model

* Added more settings methods; Hooked up initial settings runner to app boot

* Update onboarding flow to use settings model instead of session data
This commit is contained in:
Kieran authored and GitHub committed 2024-03-07 10:32:12 -08:00
1 parent 39caf4a94f
commit d0f55cd463
18 files changed
+381 -76

No files matched your search

@@ -0,0 +1,15 @@
defmodule Pinchflat.Repo.Migrations.CreateSettings do
use Ecto.Migration
def change do
create table(:settings) do
add :name, :string, null: false
add :value, :string, null: false
add :datatype, :string, null: false
timestamps(type: :utc_datetime)
end
create unique_index(:settings, [:name])
end
end