<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.iflytek.astron.console.hub.mapper.personality.PersonalityConfigMapper">

    <!-- Disable personality configurations for specified bot ID and config type -->
    <update id="setDisabledByBotIdAndConfigType">
        UPDATE personality_config
        SET enabled = 0
            WHERE bot_id = #{botId}
                AND config_type = #{configType}
                AND deleted = 0
    </update>

</mapper>
