import 'package:equatable/equatable.dart';

/// The operating status of a [Business].
enum BusinessStatus {
  /// Business created but not yet approved.
  pending,

  /// Fully active and operational.
  active,

  /// Temporarily suspended (e.g. for non-payment).
  suspended,

  /// Permanently inactive.
  inactive,
}

/// Represents a Client Company / Business.
///
/// This is the top-level organizational entity in the system.
class Business extends Equatable {

  const Business({
    required this.id,
    required this.name,
    required this.registrationNumber,
    required this.status,
    this.avatar,
  });
  /// Unique identifier for the business.
  final String id;

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

  /// Legal registration or tax number.
  final String registrationNumber;

  /// Current operating status.
  final BusinessStatus status;

  /// URL to the business logo.
  final String? avatar;

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