const mongoose = require('mongoose'); module.exports = mongoose.Schema( { conversationId: { type: String, unique: true, required: true, index: true, meiliIndex: true }, parentMessageId: { type: String, required: true }, title: { type: String, default: 'New Chat', meiliIndex: true }, jailbreakConversationId: { type: String, default: null }, conversationSignature: { type: String, default: null }, clientId: { type: String }, invocationId: { type: String }, chatGptLabel: { type: String, default: null }, promptPrefix: { type: String, default: null }, model: { type: String, required: true }, user: { type: String }, suggestions: [{ type: String }], messages: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Message' }] }, { timestamps: true } );