-- Migration: Add Super Admin and Extra Settings
ALTER TABLE users ADD COLUMN is_super_admin TINYINT(1) DEFAULT 0 AFTER role;

-- Mark initial admin as super admin
UPDATE users SET is_super_admin = 1 WHERE username = 'admin';

-- Add more settings to charity_settings
ALTER TABLE charity_settings 
ADD COLUMN site_maintenance TINYINT(1) DEFAULT 0,
ADD COLUMN site_footer TEXT DEFAULT NULL,
ADD COLUMN allow_registration TINYINT(1) DEFAULT 0;
