6ac118ae70
Daemon, StartOS wrapper, admin SPA, public buy/thank-you pages, discount codes, free-license redemption, Apply-discount UX, self-licensing, and v0.1.0 release notes.
17 lines
610 B
SQL
17 lines
610 B
SQL
-- Runtime-mutable settings, intentionally separated from the
|
|
-- startup-only env-var config in `Config::from_env`. Anything that
|
|
-- should be live-editable through admin actions or the future web UI —
|
|
-- and survive a daemon restart — goes here.
|
|
--
|
|
-- The table is a generic key/value store rather than dedicated columns
|
|
-- because the set of settings will grow over time, and the cost of a
|
|
-- key/value pattern with at most a few dozen rows is nil.
|
|
|
|
PRAGMA foreign_keys = ON;
|
|
|
|
CREATE TABLE IF NOT EXISTS settings (
|
|
key TEXT PRIMARY KEY,
|
|
value TEXT,
|
|
updated_at TEXT NOT NULL
|
|
);
|