import { z } from 'zod' export const UserRole = z.enum(['admin', 'manager', 'staff', 'technician', 'instructor']) export type UserRole = z.infer export const RegisterSchema = z.object({ email: z.string().email(), password: z.string().min(12).max(128), firstName: z.string().min(1).max(100), lastName: z.string().min(1).max(100), role: UserRole.default('staff'), }) export type RegisterInput = z.infer export const LoginSchema = z.object({ email: z.string().email(), password: z.string().min(1), }) export type LoginInput = z.infer export const PinLoginSchema = z.object({ code: z.string().min(8).max(10).regex(/^\d+$/, 'Code must be digits only'), }) export type PinLoginInput = z.infer export const SetPinSchema = z.object({ pin: z.string().min(4).max(6).regex(/^\d+$/, 'PIN must be digits only'), }) export type SetPinInput = z.infer