mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 02:51:51 +00:00
Checkpoint add metadata to secret and secret version data structure
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user