14 lines
581 B
TypeScript
14 lines
581 B
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
|
|
|
|
const makeSchema = () => z.object({
|
|
id: z.number().int().optional(),
|
|
userId: z.number().int(),
|
|
path: z.string(),
|
|
isActive: z.boolean().optional(),
|
|
createdAt: z.coerce.date().optional()
|
|
}).strict();
|
|
export const BackupDestinationUncheckedCreateInputObjectSchema: z.ZodType<Prisma.BackupDestinationUncheckedCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.BackupDestinationUncheckedCreateInput>;
|
|
export const BackupDestinationUncheckedCreateInputObjectZodSchema = makeSchema();
|