20250113145938_altrUserAdmin.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace MTWorkHR.Infrastructure.Migrations
  4. {
  5. /// <inheritdoc />
  6. public partial class altrUserAdmin : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.UpdateData(
  12. table: "AspNetUsers",
  13. keyColumn: "Id",
  14. keyValue: "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  15. columns: new[] { "CompanyId", "Email", "FirstName", "IdNumber", "LastName", "NormalizedEmail", "NormalizedUserName", "PassportNumber", "TaxNumber", "UserName", "UserType" },
  16. values: new object[] { null, "admin@super.com", "Super", "1234", "Admin", "ADMIN@SUPER.COM", "ADMIN@SUPER.COM", "123456700", 111334455m, "Admin@super.com", 0 });
  17. }
  18. /// <inheritdoc />
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.UpdateData(
  22. table: "AspNetUsers",
  23. keyColumn: "Id",
  24. keyValue: "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
  25. columns: new[] { "CompanyId", "Email", "FirstName", "IdNumber", "LastName", "NormalizedEmail", "NormalizedUserName", "PassportNumber", "TaxNumber", "UserName", "UserType" },
  26. values: new object[] { 1L, "a@b.com", "Zinab", "123", "Elgendy", "A@B.COM", "A@B.COM", "1234567", 111m, "A@b.com", 1 });
  27. }
  28. }
  29. }