import { z } from "zod";

export const roleSchema = z.object({
  id: z.nullable(z.coerce.string()).optional(),
  name: z
    .string({
      required_error: "Role name required",
    })
    .min(2, { message: "Role must have at least 2 character(s)" }),
});

export type TSroleSchema = z.infer<typeof roleSchema>;
