feat: 255자 넘어가야 하는 필드 columnDefinition = "TEXT" 추가
This commit is contained in:
parent
689f9fe48f
commit
3b42399726
|
@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.chat.character
|
|||
|
||||
import kr.co.vividnext.sodalive.common.BaseEntity
|
||||
import javax.persistence.CascadeType
|
||||
import javax.persistence.Column
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.FetchType
|
||||
import javax.persistence.OneToMany
|
||||
|
@ -14,9 +15,11 @@ class ChatCharacter(
|
|||
val name: String,
|
||||
|
||||
// 캐릭터 설명
|
||||
@Column(columnDefinition = "TEXT", nullable = false)
|
||||
val description: String,
|
||||
|
||||
// AI 시스템 프롬프트
|
||||
@Column(columnDefinition = "TEXT", nullable = false)
|
||||
val systemPrompt: String,
|
||||
|
||||
// 나이
|
||||
|
@ -29,12 +32,14 @@ class ChatCharacter(
|
|||
val mbti: String? = null,
|
||||
|
||||
// 말투 패턴 설명
|
||||
@Column(columnDefinition = "TEXT")
|
||||
val speechPattern: String? = null,
|
||||
|
||||
// 대화 스타일
|
||||
val speechStyle: String? = null,
|
||||
|
||||
// 외모 설명
|
||||
@Column(columnDefinition = "TEXT")
|
||||
val appearance: String? = null,
|
||||
|
||||
val isActive: Boolean = true
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package kr.co.vividnext.sodalive.chat.character
|
||||
|
||||
import kr.co.vividnext.sodalive.common.BaseEntity
|
||||
import javax.persistence.Column
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.FetchType
|
||||
import javax.persistence.JoinColumn
|
||||
|
@ -16,6 +17,7 @@ class ChatCharacterBackground(
|
|||
val topic: String,
|
||||
|
||||
// 배경 설명
|
||||
@Column(columnDefinition = "TEXT", nullable = false)
|
||||
val description: String,
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package kr.co.vividnext.sodalive.chat.character
|
||||
|
||||
import kr.co.vividnext.sodalive.common.BaseEntity
|
||||
import javax.persistence.Column
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.FetchType
|
||||
import javax.persistence.JoinColumn
|
||||
|
@ -16,6 +17,7 @@ class ChatCharacterMemory(
|
|||
val title: String,
|
||||
|
||||
// 기억 내용
|
||||
@Column(columnDefinition = "TEXT", nullable = false)
|
||||
val content: String,
|
||||
|
||||
// 감정
|
||||
|
|
Loading…
Reference in New Issue