import 'package:niogu_app/core/enums/payment_status.dart';
import 'package:uuid/uuid.dart';

enum SupplierEmpty { loading, empty_database, empty_search_result, has_data }

class DisplaySuppliers {
  final String id;
  final String name;

  const DisplaySuppliers({required this.id, required this.name});
}

class UpsertSupplier {
  final String id;
  final String name;
  final String? email;
  final String? phoneNumber;

  UpsertSupplier({
    String? id,
    required this.name,
    required this.email,
    required this.phoneNumber,
  }) : id = id ?? const Uuid().v7().toString();
}

class SupplierDetail {
  final String id;
  final String name;
  final String email;
  final String phoneNumber;
  final List<SupplierActivities> activities;

  const SupplierDetail({
    required this.id,
    required this.name,
    required this.email,
    required this.phoneNumber,
    required this.activities,
  });
}

class SupplierActivities {
  final String id;
  final String purchaseNumber;
  final PaymentStatus paymentStatus;
  final DateTime purchaseDate;

  const SupplierActivities({
    required this.id,
    required this.purchaseNumber,
    required this.paymentStatus,
    required this.purchaseDate,
  });
}
