feat: update user functionality

This commit is contained in:
pit
2023-09-29 17:26:37 +01:00
committed by Mythie
parent eef720bf8c
commit 82c1ca13be
5 changed files with 120 additions and 11 deletions

View File

@ -0,0 +1,13 @@
import { Role } from '@prisma/client';
import z from 'zod';
export const ZUpdateProfileMutationByAdminSchema = z.object({
id: z.number().min(1),
name: z.string(),
email: z.string().email(),
roles: z.array(z.nativeEnum(Role)),
});
export type TUpdateProfileMutationByAdminSchema = z.infer<
typeof ZUpdateProfileMutationByAdminSchema
>;