feat:重写关系模块的逻辑和关系结构

This commit is contained in:
SengokuCola
2025-06-07 01:03:00 +08:00
parent 3c955c8a34
commit e032f44643
10 changed files with 1354 additions and 555 deletions

View File

@@ -237,16 +237,14 @@ class PersonInfo(BaseModel):
platform = TextField() # 平台
user_id = TextField(index=True) # 用户ID
nickname = TextField() # 用户昵称
impression = TextField(null=True) # 个人印象
points = TextField(null=True) # 个人印象的点
forgotten_points = TextField(null=True) # 被遗忘的点
interaction = TextField(null=True) # 与Bot的互动
person_impression = TextField(null=True) # 个人印象
traits = TextField(null=True) # 性格
gender = TextField(null=True) # 性别
relation = TextField(null=True) # 关系
identity = TextField(null=True) # 身份
meme = TextField(null=True) # 梗
relationship_value = IntegerField(default=0) # 关系值
know_time = FloatField() # 认识时间 (时间戳)
know_times = FloatField(null=True) # 认识时间 (时间戳)
know_since = FloatField(null=True) # 首次印象总结时间
last_know = FloatField(null=True) # 最后一次印象总结时间
class Meta: