export interface Country {
  id: string;
  code: string;
  name: string;
  dailyWorkingHours: number;
  scheduleRules?: SpainScheduleRule | null;
  isActive: boolean;
  createdAt: Date;
  updatedAt: Date;
}

export interface MetroCity {
  id: string;
  name: string;
  countryId: string;
  createdAt: Date;
  updatedAt: Date;
}

export interface CountryWithCities extends Country {
  metroCities: MetroCity[];
}

/**
 * Spain-style variable daily working hours schedule.
 * Fridays always use `fridayHours`.
 * Mon-Thu during summer period use `summerHours`, otherwise `regularHours`.
 */
export interface SpainScheduleRule {
  type: "spain";
  fridayHours: number;
  summerPeriod: { from: string; to: string }; // "MM-DD" format
  summerHours: number;
  regularHours: number;
}
