import { z } from "zod";

export const CreateChildSchema = z.object({
  name: z.string().min(1).max(100),
  color: z.string().regex(/^#[0-9a-fA-F]{6}$/).default("#378ADD"),
});

export const UpdateChildSchema = CreateChildSchema.partial();

export type CreateChildInput = z.infer<typeof CreateChildSchema>;
export type UpdateChildInput = z.infer<typeof UpdateChildSchema>;
