Update seeds

This commit is contained in:
Aaron Po
2026-01-13 23:18:03 -05:00
parent b5ab6f6893
commit da84492aa4
12 changed files with 138 additions and 208 deletions

View File

@@ -16,11 +16,18 @@ try
Console.WriteLine("Connected to database.");
await LocationSeeder.SeedAsync(connection);
Console.WriteLine("Seeded locations.");
ISeeder[] seeders =
[
new LocationSeeder(),
new UserSeeder(),
];
await UserSeeder.SeedAsync(connection);
Console.WriteLine("Seeded users.");
foreach (var seeder in seeders)
{
Console.WriteLine($"Seeding {seeder.GetType().Name}...");
await seeder.SeedAsync(connection);
Console.WriteLine($"{seeder.GetType().Name} seeded.");
}
Console.WriteLine("Seed completed successfully.");
return 0;