using Distribution.Models; using Microsoft.EntityFrameworkCore; namespace Distribution.Data.Seed; public static class AdminSeed { private static readonly DateTime SeedDate = new(2026, 10, 13); // Same GUID as the AuthHex user — the sub claim from the JWT maps to this Id internal static readonly Guid SuperAdminUserId = new("00000001-0000-0000-0000-000000000001"); public static void Apply(ModelBuilder modelBuilder) { modelBuilder.Entity().HasData(new User { Id = SuperAdminUserId, Username = "superadmin", FullName = "Super Admin", FK_RoleId = RoleAndPermissionSeed.SuperAdminRoleId, IsActive = true, CreatedAt = SeedDate }); } }