mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 18:15:53 +00:00
25 lines
844 B
TypeScript
25 lines
844 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 TrustedIpsSchema = z.object({
|
|
id: z.string().uuid(),
|
|
ipAddress: z.string(),
|
|
type: z.string(),
|
|
prefix: z.number().nullable().optional(),
|
|
isActive: z.boolean().default(true).nullable().optional(),
|
|
comment: z.string().nullable().optional(),
|
|
projectId: z.string(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date()
|
|
});
|
|
|
|
export type TTrustedIps = z.infer<typeof TrustedIpsSchema>;
|
|
export type TTrustedIpsInsert = Omit<z.input<typeof TrustedIpsSchema>, TImmutableDBKeys>;
|
|
export type TTrustedIpsUpdate = Partial<Omit<z.input<typeof TrustedIpsSchema>, TImmutableDBKeys>>;
|