import 'package:equatable/equatable.dart';

/// Represents a member of a Business.
///
/// Grants a user access to business-level operations.
class BizMember extends Equatable {

  const BizMember({
    required this.id,
    required this.businessId,
    required this.userId,
    required this.role,
  });
  /// Unique identifier for this membership.
  final String id;

  /// The [Business] the user belongs to.
  final String businessId;

  /// The [User] who is a member.
  final String userId;

  /// The role within the business.
  final String role;

  @override
  List<Object?> get props => <Object?>[id, businessId, userId, role];
}