// 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 { TImmutableDBKeys } from "./models"; export const SecretRotationsSchema = z.object({ id: z.string().uuid(), provider: z.string(), secretPath: z.string(), interval: z.number(), lastRotatedAt: z.date().nullable().optional(), status: z.string().nullable().optional(), statusMessage: z.string().nullable().optional(), encryptedData: z.string().nullable().optional(), encryptedDataIV: z.string().nullable().optional(), encryptedDataTag: z.string().nullable().optional(), algorithm: z.string().nullable().optional(), keyEncoding: z.string().nullable().optional(), envId: z.string().uuid(), createdAt: z.date(), updatedAt: z.date() }); export type TSecretRotations = z.infer; export type TSecretRotationsInsert = Omit, TImmutableDBKeys>; export type TSecretRotationsUpdate = Partial, TImmutableDBKeys>>;