initial commit

This commit is contained in:
2026-07-21 13:52:43 +07:00
commit f0e6f38940
881 changed files with 66309 additions and 0 deletions
@@ -0,0 +1,33 @@
using Indotalent.Data.Entities;
using Microsoft.EntityFrameworkCore;
namespace Indotalent.Infrastructure.Database.Demo;
public static class BookingGroupSeeder
{
public static async Task GenerateDataAsync(AppDbContext context)
{
if (await context.BookingGroup.AnyAsync()) return;
var bookingGroups = new List<BookingGroup>
{
new BookingGroup { Name = "General Practice Consultations" },
new BookingGroup { Name = "Specialist Consultations" },
new BookingGroup { Name = "Dental Care & Procedures" },
new BookingGroup { Name = "Laboratory & Blood Testing" },
new BookingGroup { Name = "Radiology & Diagnostic Imaging" },
new BookingGroup { Name = "Physical Therapy & Rehabilitation" },
new BookingGroup { Name = "Maternal & Women's Health" },
new BookingGroup { Name = "Pediatric Care & Immunizations" },
new BookingGroup { Name = "Minor Surgical Procedures" },
new BookingGroup { Name = "Health Screening & Medical Checkups" }
};
foreach (var bookingGroup in bookingGroups)
{
await context.BookingGroup.AddAsync(bookingGroup);
}
await context.SaveChangesAsync();
}
}