-- Migration: Add alerts_enabled to plants table -- Description: 발전소 대시보드(모바일/웹)에서 이상 알림을 끄거나 켤 수 있도록 상태를 저장하는 컬럼 추가 -- Created At: 2026-04-14 -- 1. plants 테이블에 alerts_enabled 컬럼 추가 (기본값: true) ALTER TABLE public.plants ADD COLUMN IF NOT EXISTS alerts_enabled BOOLEAN DEFAULT TRUE; -- 2. 컬럼 역할에 대한 설명(주석) 추가 COMMENT ON COLUMN public.plants.alerts_enabled IS '발전소 이상 감지 알림 활성화 여부 (true: 알림 켬, false: 알림 끔)';