42 lines
3.0 KiB
TypeScript
42 lines
3.0 KiB
TypeScript
import type { Prisma } from '../../generated/prisma';
|
|
import * as z from 'zod';
|
|
import { StaffIncludeObjectSchema as StaffIncludeObjectSchema } from './objects/StaffInclude.schema';
|
|
import { StaffOrderByWithRelationInputObjectSchema as StaffOrderByWithRelationInputObjectSchema } from './objects/StaffOrderByWithRelationInput.schema';
|
|
import { StaffWhereInputObjectSchema as StaffWhereInputObjectSchema } from './objects/StaffWhereInput.schema';
|
|
import { StaffWhereUniqueInputObjectSchema as StaffWhereUniqueInputObjectSchema } from './objects/StaffWhereUniqueInput.schema';
|
|
import { StaffScalarFieldEnumSchema } from './enums/StaffScalarFieldEnum.schema';
|
|
|
|
// Select schema needs to be in file to prevent circular imports
|
|
//------------------------------------------------------
|
|
|
|
export const StaffFindFirstOrThrowSelectSchema: z.ZodType<Prisma.StaffSelect> = z.object({
|
|
id: z.boolean().optional(),
|
|
userId: z.boolean().optional(),
|
|
name: z.boolean().optional(),
|
|
email: z.boolean().optional(),
|
|
role: z.boolean().optional(),
|
|
phone: z.boolean().optional(),
|
|
createdAt: z.boolean().optional(),
|
|
user: z.boolean().optional(),
|
|
appointments: z.boolean().optional(),
|
|
claims: z.boolean().optional(),
|
|
_count: z.boolean().optional()
|
|
}).strict() as unknown as z.ZodType<Prisma.StaffSelect>;
|
|
|
|
export const StaffFindFirstOrThrowSelectZodSchema = z.object({
|
|
id: z.boolean().optional(),
|
|
userId: z.boolean().optional(),
|
|
name: z.boolean().optional(),
|
|
email: z.boolean().optional(),
|
|
role: z.boolean().optional(),
|
|
phone: z.boolean().optional(),
|
|
createdAt: z.boolean().optional(),
|
|
user: z.boolean().optional(),
|
|
appointments: z.boolean().optional(),
|
|
claims: z.boolean().optional(),
|
|
_count: z.boolean().optional()
|
|
}).strict();
|
|
|
|
export const StaffFindFirstOrThrowSchema: z.ZodType<Prisma.StaffFindFirstOrThrowArgs> = z.object({ select: StaffFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => StaffIncludeObjectSchema.optional()), orderBy: z.union([StaffOrderByWithRelationInputObjectSchema, StaffOrderByWithRelationInputObjectSchema.array()]).optional(), where: StaffWhereInputObjectSchema.optional(), cursor: StaffWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([StaffScalarFieldEnumSchema, StaffScalarFieldEnumSchema.array()]).optional() }).strict() as unknown as z.ZodType<Prisma.StaffFindFirstOrThrowArgs>;
|
|
|
|
export const StaffFindFirstOrThrowZodSchema = z.object({ select: StaffFindFirstOrThrowSelectSchema.optional(), include: z.lazy(() => StaffIncludeObjectSchema.optional()), orderBy: z.union([StaffOrderByWithRelationInputObjectSchema, StaffOrderByWithRelationInputObjectSchema.array()]).optional(), where: StaffWhereInputObjectSchema.optional(), cursor: StaffWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), distinct: z.union([StaffScalarFieldEnumSchema, StaffScalarFieldEnumSchema.array()]).optional() }).strict(); |