CREATE TABLE IF NOT EXISTS app_config (
    id                 INTEGER PRIMARY KEY DEFAULT 1,
    allow_password     BOOLEAN NOT NULL DEFAULT TRUE,
    allow_oidc         BOOLEAN NOT NULL DEFAULT FALSE,
    registrations_open BOOLEAN NOT NULL DEFAULT TRUE,
    oidc_issuer        TEXT,
    oidc_name          TEXT,
    oidc_client_id     TEXT,
    oidc_client_secret TEXT,
    oidc_redirect_uri  TEXT,
    updated_at         TIMESTAMP,
    CONSTRAINT app_config_single_row CHECK (id = 1)
);
