-- Add is_temporary column to profiles table
ALTER TABLE profiles ADD COLUMN is_temporary BOOLEAN DEFAULT FALSE;

-- Update the column to be NOT NULL with default value
ALTER TABLE profiles ALTER COLUMN is_temporary SET NOT NULL;

-- Add a comment to document the column purpose
COMMENT ON COLUMN profiles.is_temporary IS 'Indicates if the user account was created with a temporary password and needs to be changed on first login';
