import 'package:equatable/equatable.dart';

/// Represents a single item in the spending breakdown.
class SpendingBreakdownItem extends Equatable {
  /// Creates a [SpendingBreakdownItem].
  const SpendingBreakdownItem({
    required this.category,
    required this.hours,
    required this.amount,
  });

  /// The category name (e.g., "Server Staff").
  final String category;

  /// The total hours worked in this category.
  final int hours;

  /// The total amount spent in this category.
  final double amount;

  @override
  List<Object?> get props => <Object?>[category, hours, amount];
}
