Skip to content

Commit

Permalink
add role to admin add user schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 17, 2024
1 parent 63c0bc2 commit 74cb012
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shared/schemas/users/create-user.schema.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { z } from "zod";
import { ROLES } from "@shared/entities/users/roles.enum";

export const CreateUserSchema = z.object({
email: z.string().email(),
name: z.string().optional(),
partnerName: z.string(),
role: z.enum([ROLES.ADMIN, ROLES.PARTNER]),
});

0 comments on commit 74cb012

Please sign in to comment.