mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-30 10:28:42 +00:00
detail ux
This commit is contained in:
@@ -84,4 +84,12 @@ const ChatSchema = new Schema({
|
||||
}
|
||||
});
|
||||
|
||||
try {
|
||||
ChatSchema.index({ userId: 1 });
|
||||
ChatSchema.index({ updateTime: -1 });
|
||||
ChatSchema.index({ appId: 1 });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
export const Chat: Model<ChatType> = models['chat'] || model('chat', ChatSchema);
|
||||
|
Reference in New Issue
Block a user