id, username, password, email, phone, full_name, created_at, updated_at, active OR AND ( OR AND ) username = #{criterion.value} email = #{criterion.value} phone = #{criterion.value} full_name = #{criterion.value} active = #{criterion.value} username != #{criterion.value} email != #{criterion.value} phone != #{criterion.value} full_name != #{criterion.value} active != #{criterion.value} username LIKE '%' || #{criterion.value} || '%' email LIKE '%' || #{criterion.value} || '%' phone LIKE '%' || #{criterion.value} || '%' full_name LIKE '%' || #{criterion.value} || '%' username LIKE #{criterion.value} || '%' email LIKE #{criterion.value} || '%' phone LIKE #{criterion.value} || '%' full_name LIKE #{criterion.value} || '%' username LIKE '%' || #{criterion.value} email LIKE '%' || #{criterion.value} phone LIKE '%' || #{criterion.value} full_name LIKE '%' || #{criterion.value} created_at > #{criterion.value} updated_at > #{criterion.value} created_at >= #{criterion.value} updated_at >= #{criterion.value} created_at **<** #{criterion.value} updated_at **<** #{criterion.value} created_at **<**= #{criterion.value} updated_at **<**= #{criterion.value} created_at BETWEEN #{criterion.value[0]} AND #{criterion.value[1]} updated_at BETWEEN #{criterion.value[0]} AND #{criterion.value[1]} email IS NULL phone IS NULL full_name IS NULL email IS NOT NULL phone IS NOT NULL full_name IS NOT NULL username IN #{item} email IN #{item} username = #{subCriterion.value} email = #{subCriterion.value} phone = #{subCriterion.value} full_name = #{subCriterion.value} active = #{subCriterion.value} username != #{subCriterion.value} email != #{subCriterion.value} phone != #{subCriterion.value} full_name != #{subCriterion.value} active != #{subCriterion.value} username LIKE '%' || #{subCriterion.value} || '%' email LIKE '%' || #{subCriterion.value} || '%' phone LIKE '%' || #{subCriterion.value} || '%' full_name LIKE '%' || #{subCriterion.value} || '%' INSERT INTO users ( username, password, email, phone, full_name, created_at, updated_at, active ) VALUES ( #{username}, #{password}, #{email}, #{phone}, #{fullName}, COALESCE(#{createdAt}, CURRENT_TIMESTAMP), COALESCE(#{updatedAt}, CURRENT_TIMESTAMP), COALESCE(#{active}, true) ) UPDATE users username = #{username}, password = #{password}, email = #{email}, phone = #{phone}, full_name = #{fullName}, updated_at = CURRENT_TIMESTAMP, active = #{active}, WHERE id = #{id} DELETE FROM users WHERE id = #{id}