import 'package:equatable/equatable.dart';

/// 批量补发记录
class BatchMiningRecord extends Equatable {
  final String id;
  final String accountSequence;
  final int batch;
  final int phase;
  final int treeCount;
  final int daysInPhase;
  final int preMineDays;
  final String amount;
  final String? remark;
  final DateTime createdAt;

  const BatchMiningRecord({
    required this.id,
    required this.accountSequence,
    required this.batch,
    required this.phase,
    required this.treeCount,
    required this.daysInPhase,
    required this.preMineDays,
    required this.amount,
    this.remark,
    required this.createdAt,
  });

  @override
  List<Object?> get props => [
        id,
        accountSequence,
        batch,
        phase,
        treeCount,
        daysInPhase,
        preMineDays,
        amount,
        remark,
        createdAt,
      ];
}

/// 批量补发记录分页数据
class BatchMiningRecordsPage {
  final List<BatchMiningRecord> items;
  final int total;
  final int page;
  final int pageSize;
  final int totalPages;

  const BatchMiningRecordsPage({
    required this.items,
    required this.total,
    required this.page,
    required this.pageSize,
    required this.totalPages,
  });
}
