import 'package:equatable/equatable.dart';

/// Summary of a completed shift role used for reorder suggestions.
class ReorderItem extends Equatable {
  const ReorderItem({
    required this.orderId,
    required this.title,
    required this.location,
    required this.hourlyRate,
    required this.hours,
    required this.workers,
    required this.type,
  });

  /// Parent order id for the completed shift.
  final String orderId;

  /// Display title (role + shift title).
  final String title;

  /// Location from the shift.
  final String location;

  /// Hourly rate from the role.
  final double hourlyRate;

  /// Total hours for the shift role.
  final double hours;

  /// Worker count for the shift role.
  final int workers;

  /// Order type (e.g., ONE_TIME).
  final String type;

  @override
  List<Object?> get props => <Object?>[
    orderId,
    title,
    location,
    hourlyRate,
    hours,
    workers,
    type,
  ];
}
