namespace Adapters.Driven.Persistence.Seeding;

using Microsoft.EntityFrameworkCore;

public static class DataSeeder
{
    public static void Seed(ModelBuilder modelBuilder)
    {
        // 5 Profesores
        modelBuilder.Entity<Domain.Entities.Professor>().HasData(
            new { Id = 1, Name = "Dr. García" },
            new { Id = 2, Name = "Dra. Martínez" },
            new { Id = 3, Name = "Dr. López" },
            new { Id = 4, Name = "Dra. Rodríguez" },
            new { Id = 5, Name = "Dr. Hernández" }
        );

        // 10 Materias (2 por profesor, 3 créditos cada una)
        modelBuilder.Entity<Domain.Entities.Subject>().HasData(
            new { Id = 1, Name = "Matemáticas I", Credits = 3, ProfessorId = 1 },
            new { Id = 2, Name = "Matemáticas II", Credits = 3, ProfessorId = 1 },
            new { Id = 3, Name = "Física I", Credits = 3, ProfessorId = 2 },
            new { Id = 4, Name = "Física II", Credits = 3, ProfessorId = 2 },
            new { Id = 5, Name = "Programación I", Credits = 3, ProfessorId = 3 },
            new { Id = 6, Name = "Programación II", Credits = 3, ProfessorId = 3 },
            new { Id = 7, Name = "Base de Datos I", Credits = 3, ProfessorId = 4 },
            new { Id = 8, Name = "Base de Datos II", Credits = 3, ProfessorId = 4 },
            new { Id = 9, Name = "Redes I", Credits = 3, ProfessorId = 5 },
            new { Id = 10, Name = "Redes II", Credits = 3, ProfessorId = 5 }
        );
    }
}
