Checkpoint argon2id test to generate blind index

This commit is contained in:
Tuan Dang
2023-04-15 15:21:44 +03:00
parent 3eb810b979
commit fcb677d990
8 changed files with 104 additions and 14 deletions
@@ -0,0 +1,25 @@
import { Schema, model, Types, Document } from 'mongoose';
export interface ISecretBlindIndexData {
_id: Types.ObjectId;
workspace: Types.ObjectId;
encryptedSalt: string;
}
const secretBlindIndexDataSchema = new Schema<ISecretBlindIndexData>(
{
workspace: {
type: Schema.Types.ObjectId,
ref: 'Workspace',
required: true
},
encryptedSalt: {
type: String,
required: true
}
}
);
const SecretBlindIndexData = model<ISecretBlindIndexData>('SecretBlindIndexData', secretBlindIndexDataSchema);
export default SecretBlindIndexData;