import 'package:cloud_firestore/cloud_firestore.dart';

Future<void> uploadDoctorsData() async {
  CollectionReference doctors =
      FirebaseFirestore.instance.collection('doctors');

  List<Map<String, dynamic>> doctorsList = [
    {
      "name": "Dr. Sarah Lee",
      "location": "New York, NY",
      "specialization": "Cardiologist",
      "experience": 15,
      "description":
          "Dr. Lee is a highly experienced cardiologist specializing in heart health, preventive care, and patient education.",
      "qualification": [
        "MBBS, MD - Cardiology",
        "FACC (Fellow of the American College of Cardiology)"
      ],
      "consultation": [
        {
          "location": "City Health Clinic, New York",
          "day": ["Monday", "Wednesday", "Friday"],
          "time": "9:00 AM - 3:00 PM",
          "averageTime": "30 minutes"
        },
        {
          "location": "Downtown Medical Center, New York",
          "day": ["Tuesday", "Thursday"],
          "time": "11:00 AM - 5:00 PM",
          "averageTime": "30 minutes"
        }
      ],
      "profile_image": "images/FemaleDr.jpg.png"
    },
    {
      "name": "Dr. James Wang",
      "location": "Los Angeles, CA",
      "specialization": "Dermatologist",
      "experience": 10,
      "description":
          "Dr. Wang is a board-certified dermatologist with a focus on skincare, laser treatments, and dermatologic surgery.",
      "qualification": [
        "MBBS, MD - Dermatology",
        "Diploma in Dermatology & Venereology"
      ],
      "consultation": [
        {
          "location": "LA Skin Care Clinic, Los Angeles",
          "day": ["Tuesday", "Thursday"],
          "time": "10:00 AM - 4:00 PM",
          "averageTime": "30 minutes"
        },
        {
          "location": "Westside Dermatology, Santa Monica",
          "day": ["Monday", "Wednesday", "Saturday"],
          "time": "1:00 PM - 6:00 PM",
          "averageTime": "30 minutes"
        }
      ],
      "profile_image": "images/MaleDr.jpg.png"
    },
    {
      "name": "Dr. Priya Singh",
      "location": "Chicago, IL",
      "specialization": "Pediatrician",
      "experience": 8,
      "description":
          "Dr. Singh is a compassionate pediatrician dedicated to providing comprehensive healthcare for children of all ages.",
      "qualification": [
        "MBBS, MD - Pediatrics",
        "Member of the American Academy of Pediatrics (AAP)"
      ],
      "consultation": [
        {
          "location": "Children's Health Center, Chicago",
          "day": ["Monday", "Tuesday", "Thursday"],
          "time": "9:00 AM - 2:00 PM",
          "averageTime": "30 minutes"
        },
        {
          "location": "Family Clinic, Naperville",
          "day": ["Friday", "Saturday"],
          "time": "11:00 AM - 5:00 PM",
          "averageTime": "30 minutes"
        }
      ],
      "profile_image": "images/FemaleDr.jpg.png"
    }
  ];

  for (var doctor in doctorsList) {
    await doctors.add(doctor);
  }
}
