add tid field for chat app role

This commit is contained in:
RockYang
2024-09-13 18:32:13 +08:00
parent 6c7fa17e50
commit dcdc0d8918
3 changed files with 19 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package model
type ChatRole struct {
BaseModel
Tid int
Key string `gorm:"column:marker;unique"` // 角色唯一标识
Name string // 角色名称
Context string `gorm:"column:context_json"` // 角色语料信息 json