trpc-shield
Version:
tRPC permissions as another layer of abstraction!
17 lines (13 loc) • 433 B
text/typescript
import { z } from 'zod';
import type { Prisma } from '@prisma/client';
const Schema: z.ZodType<any> = z
.object({
id: z.number().optional(),
createdAt: z.coerce.date().optional(),
username: z.string().optional().nullable(),
password: z.string().optional().nullable(),
email: z.string(),
googleId: z.string().optional().nullable(),
})
.strict();
export const UserCreateManyInputObjectSchema = Schema;