0013_outgoing_justin_hammer.sql 739 B

12345678910111213141516
  1. CREATE TABLE IF NOT EXISTS "notification_settings" (
  2. "id" serial PRIMARY KEY NOT NULL,
  3. "enabled" boolean DEFAULT false NOT NULL,
  4. "circuit_breaker_enabled" boolean DEFAULT false NOT NULL,
  5. "circuit_breaker_webhook" varchar(512),
  6. "daily_leaderboard_enabled" boolean DEFAULT false NOT NULL,
  7. "daily_leaderboard_webhook" varchar(512),
  8. "daily_leaderboard_time" varchar(10) DEFAULT '09:00',
  9. "daily_leaderboard_top_n" integer DEFAULT 5,
  10. "cost_alert_enabled" boolean DEFAULT false NOT NULL,
  11. "cost_alert_webhook" varchar(512),
  12. "cost_alert_threshold" numeric(5, 2) DEFAULT '0.80',
  13. "cost_alert_check_interval" integer DEFAULT 60,
  14. "created_at" timestamp with time zone DEFAULT now(),
  15. "updated_at" timestamp with time zone DEFAULT now()
  16. );