mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
53 lines
No EOL
985 B
JavaScript
53 lines
No EOL
985 B
JavaScript
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 }
|
|
); |