Files
keyboard_backend/src/main/resources/mapper/KeyboardAiChatMessageMapper.xml

20 lines
1.1 KiB
XML
Raw Normal View History

<?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.yolo.keyborad.mapper.KeyboardAiChatMessageMapper">
<resultMap id="BaseResultMap" type="com.yolo.keyborad.model.entity.KeyboardAiChatMessage">
<!--@mbg.generated-->
<!--@Table keyboard_ai_chat_message-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="companion_id" jdbcType="BIGINT" property="companionId" />
<result column="sender" jdbcType="SMALLINT" property="sender" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="emotion_detected" jdbcType="VARCHAR" property="emotionDetected" />
<result column="support_type" jdbcType="VARCHAR" property="supportType" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, user_id, companion_id, sender, content, emotion_detected, support_type, created_at
</sql>
</mapper>