@@ -6,6 +6,7 @@ export interface IThreadRelation {
userId: Ref<IUser>
vectorStore: Ref<IVectorStore>
threadId: string;
+ title?: string;
expiredAt: Date;
}
@@ -35,6 +35,9 @@ const schema = new Schema<ThreadRelationDocument, ThreadRelationModel>({
required: true,
unique: true,
},
+ title: {
+ type: String,
+ },
expiredAt: {
type: Date,
default: generateExpirationDate,