mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 13:15:39 +00:00
23 lines
771 B
TypeScript
23 lines
771 B
TypeScript
// 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 PamFoldersSchema = z.object({
|
|
id: z.string().uuid(),
|
|
projectId: z.string(),
|
|
parentId: z.string().uuid().nullable().optional(),
|
|
name: z.string(),
|
|
description: z.string().nullable().optional(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date()
|
|
});
|
|
|
|
export type TPamFolders = z.infer<typeof PamFoldersSchema>;
|
|
export type TPamFoldersInsert = Omit<z.input<typeof PamFoldersSchema>, TImmutableDBKeys>;
|
|
export type TPamFoldersUpdate = Partial<Omit<z.input<typeof PamFoldersSchema>, TImmutableDBKeys>>;
|