mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-26 15:40:31 +00:00
feat: 修改chat的数据结构
This commit is contained in:
@@ -20,7 +20,24 @@ const ChatSchema = new Schema({
|
||||
// 剩余加载次数
|
||||
type: Number,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
updateTime: {
|
||||
type: Number,
|
||||
required: true
|
||||
},
|
||||
content: [
|
||||
{
|
||||
obj: {
|
||||
type: String,
|
||||
required: true,
|
||||
enum: ['Human', 'AI', 'SYSTEM']
|
||||
},
|
||||
value: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
export const Chat = models['chat'] || model('chat', ChatSchema);
|
||||
|
Reference in New Issue
Block a user