Checkpoint add metadata to secret and secret version data structure

This commit is contained in:
Tuan Dang
2023-08-23 16:30:42 +07:00
parent 5b342409e3
commit 8b381b2b80
4 changed files with 27 additions and 5 deletions
+6
View File
@@ -28,6 +28,9 @@ export interface ISecretVersion {
createdAt: string;
folder?: string;
tags?: string[];
metadata?: {
[key: string]: string;
}
}
const secretVersionSchema = new Schema<ISecretVersion>(
@@ -118,6 +121,9 @@ const secretVersionSchema = new Schema<ISecretVersion>(
type: [Schema.Types.ObjectId],
default: [],
},
metadata: {
type: Schema.Types.Mixed
}
},
{
timestamps: true,