part of '../customer.dart';

@freezed
class Customer with _$Customer {
  const factory Customer({
    required String id,
    required String organizationId,
    required String name,
    required String email,
    required String phone,
    required String address,
    required bool isDefault,
    required bool isActive,
    required Map<String, dynamic> metadata,
    required String createdAt,
    required String updatedAt,
  }) = _Customer;

  factory Customer.empty() => Customer(
    id: '',
    organizationId: '',
    name: '',
    email: '',
    phone: '',
    address: '',
    isDefault: false,
    isActive: false,
    metadata: const {},
    createdAt: '',
    updatedAt: '',
  );
}
