캐릭터 챗봇 #338
| @@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.chat.character | |||||||
|  |  | ||||||
| import kr.co.vividnext.sodalive.common.BaseEntity | import kr.co.vividnext.sodalive.common.BaseEntity | ||||||
| import javax.persistence.CascadeType | import javax.persistence.CascadeType | ||||||
|  | import javax.persistence.Column | ||||||
| import javax.persistence.Entity | import javax.persistence.Entity | ||||||
| import javax.persistence.FetchType | import javax.persistence.FetchType | ||||||
| import javax.persistence.OneToMany | import javax.persistence.OneToMany | ||||||
| @@ -14,9 +15,11 @@ class ChatCharacter( | |||||||
|     val name: String, |     val name: String, | ||||||
|  |  | ||||||
|     // 캐릭터 설명 |     // 캐릭터 설명 | ||||||
|  |     @Column(columnDefinition = "TEXT", nullable = false) | ||||||
|     val description: String, |     val description: String, | ||||||
|  |  | ||||||
|     // AI 시스템 프롬프트 |     // AI 시스템 프롬프트 | ||||||
|  |     @Column(columnDefinition = "TEXT", nullable = false) | ||||||
|     val systemPrompt: String, |     val systemPrompt: String, | ||||||
|  |  | ||||||
|     // 나이 |     // 나이 | ||||||
| @@ -29,12 +32,14 @@ class ChatCharacter( | |||||||
|     val mbti: String? = null, |     val mbti: String? = null, | ||||||
|  |  | ||||||
|     // 말투 패턴 설명 |     // 말투 패턴 설명 | ||||||
|  |     @Column(columnDefinition = "TEXT") | ||||||
|     val speechPattern: String? = null, |     val speechPattern: String? = null, | ||||||
|  |  | ||||||
|     // 대화 스타일 |     // 대화 스타일 | ||||||
|     val speechStyle: String? = null, |     val speechStyle: String? = null, | ||||||
|  |  | ||||||
|     // 외모 설명 |     // 외모 설명 | ||||||
|  |     @Column(columnDefinition = "TEXT") | ||||||
|     val appearance: String? = null, |     val appearance: String? = null, | ||||||
|  |  | ||||||
|     val isActive: Boolean = true |     val isActive: Boolean = true | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| package kr.co.vividnext.sodalive.chat.character | package kr.co.vividnext.sodalive.chat.character | ||||||
|  |  | ||||||
| import kr.co.vividnext.sodalive.common.BaseEntity | import kr.co.vividnext.sodalive.common.BaseEntity | ||||||
|  | import javax.persistence.Column | ||||||
| import javax.persistence.Entity | import javax.persistence.Entity | ||||||
| import javax.persistence.FetchType | import javax.persistence.FetchType | ||||||
| import javax.persistence.JoinColumn | import javax.persistence.JoinColumn | ||||||
| @@ -16,6 +17,7 @@ class ChatCharacterBackground( | |||||||
|     val topic: String, |     val topic: String, | ||||||
|  |  | ||||||
|     // 배경 설명 |     // 배경 설명 | ||||||
|  |     @Column(columnDefinition = "TEXT", nullable = false) | ||||||
|     val description: String, |     val description: String, | ||||||
|  |  | ||||||
|     @ManyToOne(fetch = FetchType.LAZY) |     @ManyToOne(fetch = FetchType.LAZY) | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| package kr.co.vividnext.sodalive.chat.character | package kr.co.vividnext.sodalive.chat.character | ||||||
|  |  | ||||||
| import kr.co.vividnext.sodalive.common.BaseEntity | import kr.co.vividnext.sodalive.common.BaseEntity | ||||||
|  | import javax.persistence.Column | ||||||
| import javax.persistence.Entity | import javax.persistence.Entity | ||||||
| import javax.persistence.FetchType | import javax.persistence.FetchType | ||||||
| import javax.persistence.JoinColumn | import javax.persistence.JoinColumn | ||||||
| @@ -16,6 +17,7 @@ class ChatCharacterMemory( | |||||||
|     val title: String, |     val title: String, | ||||||
|  |  | ||||||
|     // 기억 내용 |     // 기억 내용 | ||||||
|  |     @Column(columnDefinition = "TEXT", nullable = false) | ||||||
|     val content: String, |     val content: String, | ||||||
|  |  | ||||||
|     // 감정 |     // 감정 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user