import 'package:equatable/equatable.dart';

/// Represents a required certificate definition.
///
/// Examples: "Food Hygiene Level 2", "SIA Badge".
class Certificate extends Equatable {

  const Certificate({
    required this.id,
    required this.name,
    required this.isRequired,
  });
  /// Unique identifier.
  final String id;

  /// Display name of the certificate.
  final String name;

  /// Whether this certificate is mandatory for platform access or specific roles.
  final bool isRequired;

  @override
  List<Object?> get props => <Object?>[id, name, isRequired];
}