-- Add is_activate column to users table
ALTER TABLE users ADD COLUMN is_activate BOOLEAN NOT NULL DEFAULT true;

-- Create index on is_activate for faster filtering
CREATE INDEX idx_users_is_activate ON users(is_activate);

-- Update existing users to be activated by default
UPDATE users SET is_activate = true WHERE is_activate IS NULL; 