import { z } from "zod";

const userResumeBase = z.object({
  fullName: z.string().min(1, "Full name is required").max(200, "Full name is too long"),
  email: z.string().email("Invalid email address"),
  phoneNumber: z.string().min(1, "Phone number is required").max(20, "Phone number is too long"),
  cvURL: z.string().url("Invalid CV URL").min(1, "CV URL is required"),
  coverNote: z.string().max(2000, "Cover note is too long").optional(),
  jobId: z.string().optional(),
  positionTitle: z.string().max(200, "Position title is too long").optional(),
});

const createUserResumeSchema = userResumeBase;

export { createUserResumeSchema };

