export type PriceModifierType = 'all' | 'weekday' | 'weekend' | 'custom' | 'holiday';

export interface PriceModifier {
  id: number;
  name: string;
  operation: 'add' | 'subtract';
  calculation: 'flat' | 'percent';
  value: number; // price value or percent

  start_date?: string | null; // YYYY-MM-DD
  end_date?: string | null;   // YYYY-MM-DD

  type: PriceModifierType;
  custom_days?: number[]; // for 'custom' type, array of dates YYYY-MM-DD



  priority: number; // higher priority applied first

  categories: number[],
  rooms: number[]

  created_at: string;
  updated_at: string;
}

// For relationships
export interface ModifierCategory {
  modifier_id: number;
  category_id: number;
}

export interface ModifierRoom {
  modifier_id: number;
  room_id: number;
}

export interface RoomCategoryItem {
  id: number,
  short_name: string,
}
export interface RoomItem {
  id: number,
  room_number: string,
}

export type RoomCalendarPrices = {
  [date: string]: number;
};