Skip to content

Commit be55f8e

Browse files
committed
chore[chat]: chatMemory 주석 해제 및 도커 설정
1 parent f75cd0e commit be55f8e

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

backend/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ services:
2121
--collation-server=utf8mb4_0900_ai_ci
2222
--default-time-zone=Asia/Seoul
2323
--skip-log-bin
24+
--lower-case-table-names=1
2425
healthcheck:
2526
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-p${DEV_DATASOURCE_PASSWORD}"]
2627
interval: 10s
@@ -44,7 +45,7 @@ services:
4445
retries: 10
4546

4647
qdrant:
47-
image: qdrant/qdrant:v1.13.4
48+
image: qdrant/qdrant
4849
container_name: qdrant-new
4950
restart: unless-stopped
5051
ports:

backend/src/main/java/com/ai/lawyer/domain/chatbot/entity/ChatMemory.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
package com.ai.lawyer.domain.chatbot.entity;
22

3-
/*
3+
import jakarta.persistence.*;
4+
import lombok.AllArgsConstructor;
5+
import lombok.Data;
6+
import lombok.NoArgsConstructor;
7+
import org.springframework.ai.chat.messages.MessageType;
8+
49
@Entity
510
@Data
611
@NoArgsConstructor
@@ -19,4 +24,4 @@ public class ChatMemory {
1924
@Column(name = "type", nullable = false)
2025
private MessageType type;
2126

22-
}*/
27+
}
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
package com.ai.lawyer.domain.chatbot.entity;
22

3-
/*
3+
import jakarta.persistence.Column;
4+
import jakarta.persistence.Embeddable;
5+
6+
import java.io.Serializable;
7+
import java.time.LocalDateTime;
8+
49
@Embeddable
510
public class ChatMemoryId implements Serializable {
611

@@ -10,4 +15,4 @@ public class ChatMemoryId implements Serializable {
1015
@Column(name = "timestamp", nullable = false)
1116
private LocalDateTime timestamp;
1217

13-
}*/
18+
}

backend/src/main/resources/data.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
-- MySQL 용
2-
CREATE TABLE IF NOT EXISTS SPRING_AI_CHAT_MEMORY (
2+
/*CREATE TABLE IF NOT EXISTS SPRING_AI_CHAT_MEMORY (
33
`conversation_id` VARCHAR(36) NOT NULL,
44
`content` TEXT NOT NULL,
55
`type` ENUM('USER', 'ASSISTANT', 'SYSTEM', 'TOOL') NOT NULL,
66
`timestamp` TIMESTAMP NOT NULL,
77
88
INDEX `SPRING_AI_CHAT_MEMORY_CONVERSATION_ID_TIMESTAMP_IDX` (`conversation_id`, `timestamp`)
9-
);
9+
);*/
1010

11-
/*-- H2 용
12-
CREATE TABLE IF NOT EXISTS SPRING_AI_CHAT_MEMORY
11+
-- H2 용
12+
/*CREATE TABLE IF NOT EXISTS SPRING_AI_CHAT_MEMORY
1313
(
1414
conversation_id
1515
VARCHAR

0 commit comments

Comments
 (0)