import { z } from "zod"; export const registerSchema = z.object({ body: z.object({ email: z.string().email(), password: z.string().min(8), role: z.enum(["customer", "admin"]).default("customer"), }), }); export const loginSchema = z.object({ body: z.object({ email: z.string().email(), password: z.string().min(1), }), });