-- Phase 1c: Platform Admin Dashboard
-- Add super-admin flag to users table

ALTER TABLE users ADD COLUMN is_super_admin BOOLEAN NOT NULL DEFAULT false;

-- Seed the bootstrap admin as super admin (first user created)
UPDATE users SET is_super_admin = true
WHERE id = (SELECT id FROM users ORDER BY created_at ASC LIMIT 1);
