0025_platform_settings.sql 561 B

12345678910111213
  1. -- 0025_platform_settings — dashboard-controllable platform flags.
  2. -- Single key/value JSONB store an admin can flip without a container
  3. -- restart. Today the only key is `openSignups`; the table is sized for
  4. -- a handful of flags total.
  5. CREATE TABLE IF NOT EXISTS "platform_settings" (
  6. "key" text PRIMARY KEY NOT NULL,
  7. "value" jsonb NOT NULL,
  8. "updated_at" timestamp with time zone DEFAULT now() NOT NULL,
  9. "updated_by" text,
  10. CONSTRAINT "platform_settings_updated_by_fk"
  11. FOREIGN KEY ("updated_by") REFERENCES "users"("id") ON DELETE SET NULL
  12. );