-- Migration: Add is_admin field to users table
-- Date: 2026-02-02
--
-- This migration adds is_admin boolean field to users table to identify admin users.
-- Default value is FALSE, so existing users will not become admins automatically.

ALTER TABLE users 
ADD COLUMN is_admin BOOLEAN NOT NULL DEFAULT FALSE;

CREATE INDEX idx_users_is_admin ON users(is_admin);

COMMENT ON COLUMN users.is_admin IS 'Indicates if the user has admin privileges';
