<?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="shop.alien.mapper.LawyerChatMessageMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="shop.alien.entity.store.LawyerChatMessage">
        <id column="id" property="id" />
        <result column="chat_session_id" property="chatSessionId" />
        <result column="consultation_order_id" property="consultationOrderId" />
        <result column="sender_id" property="senderId" />
        <result column="sender_type" property="senderType" />
        <result column="message_content" property="messageContent" />
        <result column="message_type" property="messageType" />
        <result column="media_url" property="mediaUrl" />
        <result column="message_timestamp" property="messageTimestamp" />
        <result column="read_status" property="readStatus" />
        <result column="read_time" property="readTime" />
        <result column="delete_flag" property="deleteFlag" />
        <result column="created_time" property="createdTime" />
        <result column="created_user_id" property="createdUserId" />
        <result column="updated_time" property="updatedTime" />
        <result column="updated_user_id" property="updatedUserId" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, chat_session_id, consultation_order_id, sender_id, sender_type, message_content,
        message_type, media_url, message_timestamp, read_status, read_time, delete_flag,
        created_time, created_user_id, updated_time, updated_user_id
    </sql>

</mapper>
