import { z } from "zod";

export const UpdateHouseholdSettingsSchema = z.object({
  ownerName: z.string().min(1).max(50).optional(),
  partnerName: z.string().min(1).max(50).optional(),
  userSharePercent: z.number().min(10).max(100).optional(),
  monthlyBudget: z.number().min(0).optional(),
  currency: z.string().length(3).optional(),
  splitChildCosts: z.boolean().optional(),
  payerUserId: z.string().nullable().optional(),
  onboardingComplete: z.boolean().optional(),
  language: z.string().optional(),
});

export type UpdateHouseholdSettingsInput = z.infer<typeof UpdateHouseholdSettingsSchema>;
