11 lines
658 B
TypeScript
11 lines
658 B
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { UserCreateNestedOneWithoutBackupsInputObjectSchema as UserCreateNestedOneWithoutBackupsInputObjectSchema } from './UserCreateNestedOneWithoutBackupsInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
createdAt: z.coerce.date().optional(),
|
|
user: z.lazy(() => UserCreateNestedOneWithoutBackupsInputObjectSchema)
|
|
}).strict();
|
|
export const DatabaseBackupCreateInputObjectSchema: z.ZodType<Prisma.DatabaseBackupCreateInput> = makeSchema() as unknown as z.ZodType<Prisma.DatabaseBackupCreateInput>;
|
|
export const DatabaseBackupCreateInputObjectZodSchema = makeSchema();
|