Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

gen schema

x99ef6206e6d6
diff --git a/backend/src/db/schemas/pam-revamp-backup.ts b/backend/src/db/schemas/pam-revamp-backup.ts
new file mode 100644
index 0000000000..8e62430b7f
--- /dev/null
+++ b/backend/src/db/schemas/pam-revamp-backup.ts
@@ -0,0 +1,26 @@
+// Code generated by automation script, DO NOT EDIT.
+// Automated by pulling database and generating zod schema
+// To update. Just run npm run generate:schema
+// Written by akhilmhdh.
+
+import { z } from "zod";
+
+import { zodBuffer } from "@app/lib/zod";
+
+import { TImmutableDBKeys } from "./models";
+
+export const PamRevampBackupSchema = z.object({
+ id: z.string().uuid(),
+ entityType: z.string(),
+ entityId: z.string(),
+ before: z.unknown().nullable().optional(),
+ beforeCredentials: zodBuffer.nullable().optional(),
+ beforeSessionKey: zodBuffer.nullable().optional(),
+ beforeLogsBlob: zodBuffer.nullable().optional(),
+ createdAt: z.date(),
+ updatedAt: z.date()
+});
+
+export type TPamRevampBackup = z.infer<typeof PamRevampBackupSchema>;
+export type TPamRevampBackupInsert = Omit<z.input<typeof PamRevampBackupSchema>, TImmutableDBKeys>;
+export type TPamRevampBackupUpdate = Partial<Omit<z.input<typeof PamRevampBackupSchema>, TImmutableDBKeys>>;