-- 03.sql: recipients for SMS alerts -- Table to store phone numbers, enabled flag, and alert level (1=red only, 2=yellow+red) -- PostgreSQL has no native unsigned int; use integer with CHECK constraints. CREATE TABLE IF NOT EXISTS sms_recipients ( phone TEXT PRIMARY KEY, enabled BOOLEAN NOT NULL DEFAULT TRUE, alert_level INTEGER NOT NULL DEFAULT 2 CHECK (alert_level >= 1) );