import 'package:equatable/equatable.dart';

/// Represents a rating given to a staff member by a client.
class StaffRating extends Equatable {

  const StaffRating({
    required this.id,
    required this.staffId,
    required this.eventId,
    required this.businessId,
    required this.rating,
    this.comment,
  });
  /// Unique identifier.
  final String id;

  /// The [Staff] being rated.
  final String staffId;

  /// The [Event] context.
  final String eventId;

  /// The [Business] leaving the rating.
  final String businessId;

  /// Star rating (1-5).
  final int rating;

  /// Optional feedback text.
  final String? comment;

  @override
  List<Object?> get props => <Object?>[id, staffId, eventId, businessId, rating, comment];
}