|
|
|
@ -7,6 +7,8 @@ using Microsoft.EntityFrameworkCore.Metadata; |
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(IdentityServiceDbContext))] |
|
|
|
@ -17,9 +19,10 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
#pragma warning disable 612, 618
|
|
|
|
modelBuilder |
|
|
|
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) |
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128) |
|
|
|
.HasAnnotation("ProductVersion", "5.0.7") |
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|
|
|
.HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10") |
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128); |
|
|
|
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => |
|
|
|
{ |
|
|
|
@ -64,7 +67,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("AbpClaimTypes"); |
|
|
|
b.ToTable("AbpClaimTypes", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => |
|
|
|
@ -90,7 +93,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
.IsUnique() |
|
|
|
.HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); |
|
|
|
|
|
|
|
b.ToTable("AbpLinkUsers"); |
|
|
|
b.ToTable("AbpLinkUsers", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => |
|
|
|
@ -138,7 +141,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpRoles"); |
|
|
|
b.ToTable("AbpRoles", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => |
|
|
|
@ -166,7 +169,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("RoleId"); |
|
|
|
|
|
|
|
b.ToTable("AbpRoleClaims"); |
|
|
|
b.ToTable("AbpRoleClaims", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => |
|
|
|
@ -240,7 +243,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("TenantId", "UserId"); |
|
|
|
|
|
|
|
b.ToTable("AbpSecurityLogs"); |
|
|
|
b.ToTable("AbpSecurityLogs", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => |
|
|
|
@ -292,6 +295,9 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
.HasColumnType("nvarchar(max)") |
|
|
|
.HasColumnName("ExtraProperties"); |
|
|
|
|
|
|
|
b.Property<bool>("IsActive") |
|
|
|
.HasColumnType("bit"); |
|
|
|
|
|
|
|
b.Property<bool>("IsDeleted") |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasColumnType("bit") |
|
|
|
@ -391,7 +397,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("UserName"); |
|
|
|
|
|
|
|
b.ToTable("AbpUsers"); |
|
|
|
b.ToTable("AbpUsers", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => |
|
|
|
@ -419,7 +425,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("UserId"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserClaims"); |
|
|
|
b.ToTable("AbpUserClaims", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => |
|
|
|
@ -448,7 +454,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("LoginProvider", "ProviderKey"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserLogins"); |
|
|
|
b.ToTable("AbpUserLogins", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => |
|
|
|
@ -475,7 +481,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("UserId", "OrganizationUnitId"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserOrganizationUnits"); |
|
|
|
b.ToTable("AbpUserOrganizationUnits", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => |
|
|
|
@ -494,7 +500,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("RoleId", "UserId"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserRoles"); |
|
|
|
b.ToTable("AbpUserRoles", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => |
|
|
|
@ -519,7 +525,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name"); |
|
|
|
|
|
|
|
b.ToTable("AbpUserTokens"); |
|
|
|
b.ToTable("AbpUserTokens", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => |
|
|
|
@ -592,7 +598,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("ParentId"); |
|
|
|
|
|
|
|
b.ToTable("AbpOrganizationUnits"); |
|
|
|
b.ToTable("AbpOrganizationUnits", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => |
|
|
|
@ -619,7 +625,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("RoleId", "OrganizationUnitId"); |
|
|
|
|
|
|
|
b.ToTable("AbpOrganizationUnitRoles"); |
|
|
|
b.ToTable("AbpOrganizationUnitRoles", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => |
|
|
|
@ -692,7 +698,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerApiResources"); |
|
|
|
b.ToTable("IdentityServerApiResources", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => |
|
|
|
@ -706,7 +712,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ApiResourceId", "Type"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerApiResourceClaims"); |
|
|
|
b.ToTable("IdentityServerApiResourceClaims", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => |
|
|
|
@ -724,7 +730,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ApiResourceId", "Key", "Value"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerApiResourceProperties"); |
|
|
|
b.ToTable("IdentityServerApiResourceProperties", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => |
|
|
|
@ -738,7 +744,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ApiResourceId", "Scope"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerApiResourceScopes"); |
|
|
|
b.ToTable("IdentityServerApiResourceScopes", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => |
|
|
|
@ -763,7 +769,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ApiResourceId", "Type", "Value"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerApiResourceSecrets"); |
|
|
|
b.ToTable("IdentityServerApiResourceSecrets", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => |
|
|
|
@ -838,7 +844,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerApiScopes"); |
|
|
|
b.ToTable("IdentityServerApiScopes", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => |
|
|
|
@ -852,7 +858,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ApiScopeId", "Type"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerApiScopeClaims"); |
|
|
|
b.ToTable("IdentityServerApiScopeClaims", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => |
|
|
|
@ -870,7 +876,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ApiScopeId", "Key", "Value"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerApiScopeProperties"); |
|
|
|
b.ToTable("IdentityServerApiScopeProperties", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => |
|
|
|
@ -1053,7 +1059,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("ClientId"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClients"); |
|
|
|
b.ToTable("IdentityServerClients", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => |
|
|
|
@ -1071,7 +1077,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ClientId", "Type", "Value"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClientClaims"); |
|
|
|
b.ToTable("IdentityServerClientClaims", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => |
|
|
|
@ -1085,7 +1091,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ClientId", "Origin"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClientCorsOrigins"); |
|
|
|
b.ToTable("IdentityServerClientCorsOrigins", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => |
|
|
|
@ -1099,7 +1105,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ClientId", "GrantType"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClientGrantTypes"); |
|
|
|
b.ToTable("IdentityServerClientGrantTypes", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => |
|
|
|
@ -1113,7 +1119,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ClientId", "Provider"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClientIdPRestrictions"); |
|
|
|
b.ToTable("IdentityServerClientIdPRestrictions", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => |
|
|
|
@ -1127,7 +1133,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ClientId", "PostLogoutRedirectUri"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClientPostLogoutRedirectUris"); |
|
|
|
b.ToTable("IdentityServerClientPostLogoutRedirectUris", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => |
|
|
|
@ -1145,7 +1151,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ClientId", "Key", "Value"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClientProperties"); |
|
|
|
b.ToTable("IdentityServerClientProperties", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => |
|
|
|
@ -1159,7 +1165,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ClientId", "RedirectUri"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClientRedirectUris"); |
|
|
|
b.ToTable("IdentityServerClientRedirectUris", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => |
|
|
|
@ -1173,7 +1179,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ClientId", "Scope"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClientScopes"); |
|
|
|
b.ToTable("IdentityServerClientScopes", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => |
|
|
|
@ -1198,7 +1204,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("ClientId", "Type", "Value"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerClientSecrets"); |
|
|
|
b.ToTable("IdentityServerClientSecrets", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => |
|
|
|
@ -1269,7 +1275,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("UserCode"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerDeviceFlowCodes"); |
|
|
|
b.ToTable("IdentityServerDeviceFlowCodes", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => |
|
|
|
@ -1335,7 +1341,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasIndex("SubjectId", "SessionId", "Type"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerPersistedGrants"); |
|
|
|
b.ToTable("IdentityServerPersistedGrants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => |
|
|
|
@ -1410,7 +1416,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerIdentityResources"); |
|
|
|
b.ToTable("IdentityServerIdentityResources", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => |
|
|
|
@ -1424,7 +1430,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("IdentityResourceId", "Type"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerIdentityResourceClaims"); |
|
|
|
b.ToTable("IdentityServerIdentityResourceClaims", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => |
|
|
|
@ -1442,7 +1448,7 @@ namespace EShopOnAbp.IdentityService.Migrations |
|
|
|
|
|
|
|
b.HasKey("IdentityResourceId", "Key", "Value"); |
|
|
|
|
|
|
|
b.ToTable("IdentityServerIdentityResourceProperties"); |
|
|
|
b.ToTable("IdentityServerIdentityResourceProperties", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => |
|
|
|
|