CREATE TABLE IF NOT EXISTS "app_config" (
  "key" varchar(100) PRIMARY KEY NOT NULL,
  "value" text,
  "description" text,
  "updated_at" timestamp with time zone DEFAULT now() NOT NULL
);

-- Seed default log level
INSERT INTO "app_config" ("key", "value", "description")
VALUES ('log_level', 'info', 'Application log level (fatal, error, warn, info, debug, trace)')
ON CONFLICT ("key") DO NOTHING;
