// 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 KmipOrgServerCertificatesSchema = z.object({ id: z.string().uuid(), orgId: z.string().uuid(), commonName: z.string(), altNames: z.string().nullable().optional(), serialNumber: z.string(), keyAlgorithm: z.string(), issuedAt: z.date(), expiration: z.date(), encryptedCertificate: zodBuffer, encryptedChain: zodBuffer }); export type TKmipOrgServerCertificates = z.infer; export type TKmipOrgServerCertificatesInsert = Omit, TImmutableDBKeys>; export type TKmipOrgServerCertificatesUpdate = Partial< Omit, TImmutableDBKeys> >;