|
|
@@ -12,6 +12,7 @@ const VectorStoreScopeTypes = Object.values(VectorStoreScopeType);
|
|
|
interface VectorStore {
|
|
|
vectorStoreId: string
|
|
|
scorpeType: VectorStoreScopeType
|
|
|
+ isDeleted: boolean
|
|
|
}
|
|
|
|
|
|
export interface VectorStoreDocument extends VectorStore, Document {}
|
|
|
@@ -29,6 +30,11 @@ const schema = new Schema<VectorStoreDocument, VectorStoreModel>({
|
|
|
type: String,
|
|
|
required: true,
|
|
|
},
|
|
|
+ isDeleted: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
});
|
|
|
|
|
|
export default getOrCreateModel<VectorStoreDocument, VectorStoreModel>('VectorStore', schema);
|