Add legacy emotions

This commit is contained in:
2023-12-21 13:30:08 +03:00
parent b040295364
commit fc5d6f90bc

View File

@@ -25,6 +25,11 @@ class Emotion(str, enum.Enum):
DELIGHT = "восхищение" DELIGHT = "восхищение"
class EmotionLegacy(str, enum.Enum):
MADNESS = "бешенство"
FORCE = "сила"
class BackendType(str, enum.Enum): class BackendType(str, enum.Enum):
LOCAL = "local" LOCAL = "local"
SOUL = "soul" SOUL = "soul"
@@ -32,7 +37,7 @@ class BackendType(str, enum.Enum):
class Sense(BaseModel): class Sense(BaseModel):
id: uuid.UUID id: uuid.UUID
emotions: list[Emotion] = [] emotions: list[Emotion | EmotionLegacy] = []
feelings: constr(min_length=1, strip_whitespace=True) feelings: constr(min_length=1, strip_whitespace=True)
body: constr(min_length=1, strip_whitespace=True) body: constr(min_length=1, strip_whitespace=True)
desires: constr(min_length=1, strip_whitespace=True) desires: constr(min_length=1, strip_whitespace=True)