Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/NotificationCreateManyUserInput.schema.ts
2026-04-04 22:13:55 -04:00

14 lines
636 B
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { NotificationTypesSchema } from '../enums/NotificationTypes.schema'
const makeSchema = () => z.object({
id: z.number().int().optional(),
type: NotificationTypesSchema,
message: z.string(),
createdAt: z.coerce.date().optional(),
read: z.boolean().optional()
}).strict();
export const NotificationCreateManyUserInputObjectSchema: z.ZodType<Prisma.NotificationCreateManyUserInput> = makeSchema() as unknown as z.ZodType<Prisma.NotificationCreateManyUserInput>;
export const NotificationCreateManyUserInputObjectZodSchema = makeSchema();