mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 08:27:53 +00:00
25 lines
835 B
TypeScript
25 lines
835 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 FolderCommitsSchema = z.object({
|
|
id: z.string().uuid(),
|
|
commitId: z.coerce.bigint(),
|
|
actorMetadata: z.unknown(),
|
|
actorType: z.string(),
|
|
message: z.string().nullable().optional(),
|
|
folderId: z.string().uuid(),
|
|
envId: z.string().uuid(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date()
|
|
});
|
|
|
|
export type TFolderCommits = z.infer<typeof FolderCommitsSchema>;
|
|
export type TFolderCommitsInsert = Omit<z.input<typeof FolderCommitsSchema>, TImmutableDBKeys>;
|
|
export type TFolderCommitsUpdate = Partial<Omit<z.input<typeof FolderCommitsSchema>, TImmutableDBKeys>>;
|