initial commit

This commit is contained in:
2026-07-21 14:35:37 +07:00
commit 0027997ff9
798 changed files with 59083 additions and 0 deletions
@@ -0,0 +1,33 @@
using Indotalent.Data.Entities;
using Microsoft.EntityFrameworkCore;
namespace Indotalent.Infrastructure.Database.Demo;
public static class WarehouseSeeder
{
public static async Task GenerateDataAsync(AppDbContext context)
{
if (await context.Warehouse.Where(x => x.SystemWarehouse == false).AnyAsync()) return;
var warehouses = new List<Warehouse>
{
new Warehouse { Name = "Grand Wellness Corporate Center - Manhattan" },
new Warehouse { Name = "Serenity Sanctuary Spa - Beverly Hills" },
new Warehouse { Name = "Tranquil Bliss Spa & Retreat - Maui" },
new Warehouse { Name = "Oceanic Refresh Spa - Miami" },
new Warehouse { Name = "Holistic Harmony Wellness - Aspen" },
new Warehouse { Name = "Mindful Living Center - Seattle" },
new Warehouse { Name = "Zenith Soul & Spirit - Sedona" },
new Warehouse { Name = "Iron & Oxygen Fitness Club - Brooklyn" },
new Warehouse { Name = "Peak Performance Gym - Austin" },
new Warehouse { Name = "Urban Pulse Fitness Studio - Chicago" }
};
foreach (var warehouse in warehouses)
{
await context.Warehouse.AddAsync(warehouse);
}
await context.SaveChangesAsync();
}
}