123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- #pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
- namespace MTWorkHR.Identity.Migrations
- {
- /// <inheritdoc />
- public partial class altrIdentity3 : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "IdentityRole");
- migrationBuilder.DeleteData(
- table: "AspNetUserRoles",
- keyColumns: new[] { "RoleId", "UserId" },
- keyValues: new object[] { "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211B", "AD5B3B92-2311-48F8-9DEC-F9FAEF1F21UA" });
- migrationBuilder.DeleteData(
- table: "AspNetUserRoles",
- keyColumns: new[] { "RoleId", "UserId" },
- keyValues: new object[] { "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211A", "LL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB" });
- migrationBuilder.DeleteData(
- table: "AspNetUsers",
- keyColumn: "Id",
- keyValue: "AD5B3B92-2311-48F8-9DEC-F9FAEF1F21UA");
- migrationBuilder.DeleteData(
- table: "AspNetUsers",
- keyColumn: "Id",
- keyValue: "LL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB");
- migrationBuilder.InsertData(
- table: "AspNetRoles",
- columns: new[] { "Id", "ConcurrencyStamp", "CreateDate", "CreateUser", "DeleteUserId", "IsAdmin", "IsDeleted", "Name", "NormalizedName", "UpdateDate", "UpdateUser" },
- values: new object[,]
- {
- { "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, null, true, false, "Admin", "ADMIN", null, null },
- { "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, null, false, false, "Employee", "EMPLOYEE", null, null }
- });
- migrationBuilder.InsertData(
- table: "AspNetUsers",
- columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "CreateUser", "DeleteUserId", "Email", "EmailConfirmed", "FirstName", "IsDeleted", "IsStopped", "LastName", "LockoutEnabled", "LockoutEnd", "ManagerId", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "SecurityStamp", "TwoFactorEnabled", "UpdateUser", "UserName", "UserType" },
- values: new object[,]
- {
- { "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA", 0, "14e7547f-8984-433b-af19-5321a2471f8e", null, null, "a@b.com", true, "Zinab", false, false, "Elgendy", false, null, null, "A@B.COM", "ADMIN", "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==", "1234567890", true, "9355e051-c970-4587-a424-ed11b0b4c606", false, null, "Admin", 1 },
- { "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB", 0, "fbae36cf-e1c8-4567-852c-636c111ac689", null, null, "ali@b.com", true, "Ali", false, false, "Farok", false, null, null, "ALI@B.COM", "ALI", "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==", "1234567890", true, "3df3d0ca-c1ec-44cf-aee0-3f8405634a8f", false, null, "ali", 1 }
- });
- migrationBuilder.InsertData(
- table: "AspNetUserRoles",
- columns: new[] { "RoleId", "UserId" },
- values: new object[,]
- {
- { "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A", "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA" },
- { "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E", "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB" }
- });
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DeleteData(
- table: "AspNetUserRoles",
- keyColumns: new[] { "RoleId", "UserId" },
- keyValues: new object[] { "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A", "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA" });
- migrationBuilder.DeleteData(
- table: "AspNetUserRoles",
- keyColumns: new[] { "RoleId", "UserId" },
- keyValues: new object[] { "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E", "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB" });
- migrationBuilder.DeleteData(
- table: "AspNetRoles",
- keyColumn: "Id",
- keyValue: "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211A");
- migrationBuilder.DeleteData(
- table: "AspNetRoles",
- keyColumn: "Id",
- keyValue: "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E");
- migrationBuilder.DeleteData(
- table: "AspNetUsers",
- keyColumn: "Id",
- keyValue: "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA");
- migrationBuilder.DeleteData(
- table: "AspNetUsers",
- keyColumn: "Id",
- keyValue: "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB");
- migrationBuilder.CreateTable(
- name: "IdentityRole",
- columns: table => new
- {
- Id = table.Column<string>(type: "nvarchar(450)", nullable: false),
- ConcurrencyStamp = table.Column<string>(type: "nvarchar(max)", nullable: true),
- Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
- NormalizedName = table.Column<string>(type: "nvarchar(max)", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_IdentityRole", x => x.Id);
- });
- migrationBuilder.InsertData(
- table: "AspNetUsers",
- columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "CreateUser", "DeleteUserId", "Email", "EmailConfirmed", "FirstName", "IsDeleted", "IsStopped", "LastName", "LockoutEnabled", "LockoutEnd", "ManagerId", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "SecurityStamp", "TwoFactorEnabled", "UpdateUser", "UserName", "UserType" },
- values: new object[,]
- {
- { "AD5B3B92-2311-48F8-9DEC-F9FAEF1F21UA", 0, "9db21270-bc4c-40e0-8db7-21c2a932d26d", null, null, "a@b.com", true, "Zinab", false, false, "Elgendy", false, null, null, "A@B.COM", "ADMIN", "AQAAAAIAAYagAAAAEPg+ASbciPFxtyxQq8Wx5ilBUQ0RbAoITXXkOQm1PzC5BzySX0sn/wUmOjBKPDGV9w==", "1234567890", true, "3e4eb597-09f6-44fb-8bb1-7027cd4a0eda", false, null, "Admin", 1 },
- { "LL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB", 0, "32f0f04a-dbd7-4a86-9b4b-63dcf2ad75f7", null, null, "ali@b.com", true, "Ali", false, false, "Farok", false, null, null, "ALI@B.COM", "ALI", "AQAAAAIAAYagAAAAEI3QJkcZjCH4Y8Db4rEgL8Mmll5oCvYcWiXZjQSN9bGW4SMcjHe3ZPMnkN/l9DmJeQ==", "1234567890", true, "7424f406-f7db-4698-bdb3-c7e28214619c", false, null, "ali", 1 }
- });
- migrationBuilder.InsertData(
- table: "IdentityRole",
- columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
- values: new object[,]
- {
- { "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211B", null, "Admin", "ADMIN" },
- { "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211A", null, "Employee", "EMPLOYEE" }
- });
- migrationBuilder.InsertData(
- table: "AspNetUserRoles",
- columns: new[] { "RoleId", "UserId" },
- values: new object[,]
- {
- { "AD5B3B92-2311-48F8-9DEC-F9FAEF1F211B", "AD5B3B92-2311-48F8-9DEC-F9FAEF1F21UA" },
- { "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211A", "LL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB" }
- });
- }
- }
- }
|