mirror of
https://gitee.com/blackfox/geekai.git
synced 2024-12-04 21:27:39 +08:00
15 lines
317 B
Go
15 lines
317 B
Go
package model
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type ChatItem struct {
|
|
BaseModel
|
|
ChatId string `gorm:"column:chat_id;unique"` // 会话 ID
|
|
UserId uint // 用户 ID
|
|
RoleId uint // 角色 ID
|
|
ModelId uint // 模型 ID
|
|
Model string // 模型
|
|
Title string // 会话标题
|
|
DeletedAt gorm.DeletedAt
|
|
}
|