//
using System;
using AuthServer.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
namespace AuthServer.Migrations
{
[DbContext(typeof(AuthServerHostMigrationsDbContext))]
partial class IdentityServerMigrationsDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "3.1.7")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("Description")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("IsStatic")
.HasColumnType("tinyint(1)");
b.Property("Name")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("Regex")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property("RegexDescription")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property("Required")
.HasColumnType("tinyint(1)");
b.Property("ValueType")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("AbpClaimTypes");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("IsDefault")
.HasColumnName("IsDefault")
.HasColumnType("tinyint(1)");
b.Property("IsPublic")
.HasColumnName("IsPublic")
.HasColumnType("tinyint(1)");
b.Property("IsStatic")
.HasColumnName("IsStatic")
.HasColumnType("tinyint(1)");
b.Property("Name")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("NormalizedName")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.HasIndex("NormalizedName");
b.ToTable("AbpRoles");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
{
b.Property("Id")
.HasColumnType("char(36)");
b.Property("ClaimType")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("ClaimValue")
.HasColumnType("varchar(1024) CHARACTER SET utf8mb4")
.HasMaxLength(1024);
b.Property("RoleId")
.HasColumnType("char(36)");
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AbpRoleClaims");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("Action")
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property("ApplicationName")
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property("BrowserInfo")
.HasColumnType("varchar(512) CHARACTER SET utf8mb4")
.HasMaxLength(512);
b.Property("ClientId")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property("ClientIpAddress")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("CorrelationId")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property("CreationTime")
.HasColumnType("datetime(6)");
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("Identity")
.HasColumnType("varchar(96) CHARACTER SET utf8mb4")
.HasMaxLength(96);
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.Property("TenantName")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("UserName")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.HasKey("Id");
b.HasIndex("TenantId", "Action");
b.HasIndex("TenantId", "ApplicationName");
b.HasIndex("TenantId", "Identity");
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpSecurityLogs");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("AccessFailedCount")
.ValueGeneratedOnAdd()
.HasColumnName("AccessFailedCount")
.HasColumnType("int")
.HasDefaultValue(0);
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("CreationTime")
.HasColumnName("CreationTime")
.HasColumnType("datetime(6)");
b.Property("CreatorId")
.HasColumnName("CreatorId")
.HasColumnType("char(36)");
b.Property("DeleterId")
.HasColumnName("DeleterId")
.HasColumnType("char(36)");
b.Property("DeletionTime")
.HasColumnName("DeletionTime")
.HasColumnType("datetime(6)");
b.Property("Email")
.IsRequired()
.HasColumnName("Email")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("EmailConfirmed")
.ValueGeneratedOnAdd()
.HasColumnName("EmailConfirmed")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnName("IsDeleted")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("IsExternal")
.ValueGeneratedOnAdd()
.HasColumnName("IsExternal")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("LastModificationTime")
.HasColumnName("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property("LastModifierId")
.HasColumnName("LastModifierId")
.HasColumnType("char(36)");
b.Property("LockoutEnabled")
.ValueGeneratedOnAdd()
.HasColumnName("LockoutEnabled")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("LockoutEnd")
.HasColumnType("datetime(6)");
b.Property("Name")
.HasColumnName("Name")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property("NormalizedEmail")
.IsRequired()
.HasColumnName("NormalizedEmail")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("NormalizedUserName")
.IsRequired()
.HasColumnName("NormalizedUserName")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("PasswordHash")
.HasColumnName("PasswordHash")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("PhoneNumber")
.HasColumnName("PhoneNumber")
.HasColumnType("varchar(16) CHARACTER SET utf8mb4")
.HasMaxLength(16);
b.Property("PhoneNumberConfirmed")
.ValueGeneratedOnAdd()
.HasColumnName("PhoneNumberConfirmed")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("SecurityStamp")
.IsRequired()
.HasColumnName("SecurityStamp")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("Surname")
.HasColumnName("Surname")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.Property("TwoFactorEnabled")
.ValueGeneratedOnAdd()
.HasColumnName("TwoFactorEnabled")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("UserName")
.IsRequired()
.HasColumnName("UserName")
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.HasKey("Id");
b.HasIndex("Email");
b.HasIndex("NormalizedEmail");
b.HasIndex("NormalizedUserName");
b.HasIndex("UserName");
b.ToTable("AbpUsers");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
{
b.Property("Id")
.HasColumnType("char(36)");
b.Property("ClaimType")
.IsRequired()
.HasColumnType("varchar(256) CHARACTER SET utf8mb4")
.HasMaxLength(256);
b.Property("ClaimValue")
.HasColumnType("varchar(1024) CHARACTER SET utf8mb4")
.HasMaxLength(1024);
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.Property("UserId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AbpUserClaims");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("LoginProvider")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property("ProviderDisplayName")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property("ProviderKey")
.IsRequired()
.HasColumnType("varchar(196) CHARACTER SET utf8mb4")
.HasMaxLength(196);
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.HasKey("UserId", "LoginProvider");
b.HasIndex("LoginProvider", "ProviderKey");
b.ToTable("AbpUserLogins");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
{
b.Property("OrganizationUnitId")
.HasColumnType("char(36)");
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("CreationTime")
.HasColumnName("CreationTime")
.HasColumnType("datetime(6)");
b.Property("CreatorId")
.HasColumnName("CreatorId")
.HasColumnType("char(36)");
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.HasKey("OrganizationUnitId", "UserId");
b.HasIndex("UserId", "OrganizationUnitId");
b.ToTable("AbpUserOrganizationUnits");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
{
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("RoleId")
.HasColumnType("char(36)");
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId", "UserId");
b.ToTable("AbpUserRoles");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
{
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("LoginProvider")
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
.HasMaxLength(64);
b.Property("Name")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.Property("Value")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AbpUserTokens");
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("Code")
.IsRequired()
.HasColumnName("Code")
.HasColumnType("varchar(95) CHARACTER SET utf8mb4")
.HasMaxLength(95);
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("CreationTime")
.HasColumnName("CreationTime")
.HasColumnType("datetime(6)");
b.Property("CreatorId")
.HasColumnName("CreatorId")
.HasColumnType("char(36)");
b.Property("DeleterId")
.HasColumnName("DeleterId")
.HasColumnType("char(36)");
b.Property("DeletionTime")
.HasColumnName("DeletionTime")
.HasColumnType("datetime(6)");
b.Property("DisplayName")
.IsRequired()
.HasColumnName("DisplayName")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnName("IsDeleted")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("LastModificationTime")
.HasColumnName("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property("LastModifierId")
.HasColumnName("LastModifierId")
.HasColumnType("char(36)");
b.Property("ParentId")
.HasColumnType("char(36)");
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.HasIndex("Code");
b.HasIndex("ParentId");
b.ToTable("AbpOrganizationUnits");
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
{
b.Property("OrganizationUnitId")
.HasColumnType("char(36)");
b.Property("RoleId")
.HasColumnType("char(36)");
b.Property("CreationTime")
.HasColumnName("CreationTime")
.HasColumnType("datetime(6)");
b.Property("CreatorId")
.HasColumnName("CreatorId")
.HasColumnType("char(36)");
b.Property("TenantId")
.HasColumnName("TenantId")
.HasColumnType("char(36)");
b.HasKey("OrganizationUnitId", "RoleId");
b.HasIndex("RoleId", "OrganizationUnitId");
b.ToTable("AbpOrganizationUnitRoles");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("CreationTime")
.HasColumnName("CreationTime")
.HasColumnType("datetime(6)");
b.Property("CreatorId")
.HasColumnName("CreatorId")
.HasColumnType("char(36)");
b.Property("DeleterId")
.HasColumnName("DeleterId")
.HasColumnType("char(36)");
b.Property("DeletionTime")
.HasColumnName("DeletionTime")
.HasColumnType("datetime(6)");
b.Property("Description")
.HasColumnType("varchar(1000) CHARACTER SET utf8mb4")
.HasMaxLength(1000);
b.Property("DisplayName")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("Enabled")
.HasColumnType("tinyint(1)");
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnName("IsDeleted")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("LastModificationTime")
.HasColumnName("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property("LastModifierId")
.HasColumnName("LastModifierId")
.HasColumnType("char(36)");
b.Property("Name")
.IsRequired()
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("Properties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
{
b.Property("ApiResourceId")
.HasColumnType("char(36)");
b.Property("Type")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.HasKey("ApiResourceId", "Type");
b.ToTable("IdentityServerApiClaims");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScope", b =>
{
b.Property("ApiResourceId")
.HasColumnType("char(36)");
b.Property("Name")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("Description")
.HasColumnType("varchar(1000) CHARACTER SET utf8mb4")
.HasMaxLength(1000);
b.Property("DisplayName")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("Emphasize")
.HasColumnType("tinyint(1)");
b.Property("Required")
.HasColumnType("tinyint(1)");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("tinyint(1)");
b.HasKey("ApiResourceId", "Name");
b.ToTable("IdentityServerApiScopes");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScopeClaim", b =>
{
b.Property("ApiResourceId")
.HasColumnType("char(36)");
b.Property("Name")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("Type")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.HasKey("ApiResourceId", "Name", "Type");
b.ToTable("IdentityServerApiScopeClaims");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiSecret", b =>
{
b.Property("ApiResourceId")
.HasColumnType("char(36)");
b.Property("Type")
.HasColumnType("varchar(250) CHARACTER SET utf8mb4")
.HasMaxLength(250);
b.Property("Value")
.HasColumnType("varchar(300) CHARACTER SET utf8mb4")
.HasMaxLength(300);
b.Property("Description")
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.Property("Expiration")
.HasColumnType("datetime(6)");
b.HasKey("ApiResourceId", "Type", "Value");
b.ToTable("IdentityServerApiSecrets");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("AbsoluteRefreshTokenLifetime")
.HasColumnType("int");
b.Property("AccessTokenLifetime")
.HasColumnType("int");
b.Property("AccessTokenType")
.HasColumnType("int");
b.Property("AllowAccessTokensViaBrowser")
.HasColumnType("tinyint(1)");
b.Property("AllowOfflineAccess")
.HasColumnType("tinyint(1)");
b.Property("AllowPlainTextPkce")
.HasColumnType("tinyint(1)");
b.Property("AllowRememberConsent")
.HasColumnType("tinyint(1)");
b.Property("AlwaysIncludeUserClaimsInIdToken")
.HasColumnType("tinyint(1)");
b.Property("AlwaysSendClientClaims")
.HasColumnType("tinyint(1)");
b.Property("AuthorizationCodeLifetime")
.HasColumnType("int");
b.Property("BackChannelLogoutSessionRequired")
.HasColumnType("tinyint(1)");
b.Property("BackChannelLogoutUri")
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.Property("ClientClaimsPrefix")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("ClientId")
.IsRequired()
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("ClientName")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("ClientUri")
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("ConsentLifetime")
.HasColumnType("int");
b.Property("CreationTime")
.HasColumnName("CreationTime")
.HasColumnType("datetime(6)");
b.Property("CreatorId")
.HasColumnName("CreatorId")
.HasColumnType("char(36)");
b.Property("DeleterId")
.HasColumnName("DeleterId")
.HasColumnType("char(36)");
b.Property("DeletionTime")
.HasColumnName("DeletionTime")
.HasColumnType("datetime(6)");
b.Property("Description")
.HasColumnType("varchar(1000) CHARACTER SET utf8mb4")
.HasMaxLength(1000);
b.Property("DeviceCodeLifetime")
.HasColumnType("int");
b.Property("EnableLocalLogin")
.HasColumnType("tinyint(1)");
b.Property("Enabled")
.HasColumnType("tinyint(1)");
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("FrontChannelLogoutSessionRequired")
.HasColumnType("tinyint(1)");
b.Property("FrontChannelLogoutUri")
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.Property("IdentityTokenLifetime")
.HasColumnType("int");
b.Property("IncludeJwtId")
.HasColumnType("tinyint(1)");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnName("IsDeleted")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("LastModificationTime")
.HasColumnName("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property("LastModifierId")
.HasColumnName("LastModifierId")
.HasColumnType("char(36)");
b.Property("LogoUri")
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.Property("PairWiseSubjectSalt")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("ProtocolType")
.IsRequired()
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("RefreshTokenExpiration")
.HasColumnType("int");
b.Property("RefreshTokenUsage")
.HasColumnType("int");
b.Property("RequireClientSecret")
.HasColumnType("tinyint(1)");
b.Property("RequireConsent")
.HasColumnType("tinyint(1)");
b.Property("RequirePkce")
.HasColumnType("tinyint(1)");
b.Property("SlidingRefreshTokenLifetime")
.HasColumnType("int");
b.Property("UpdateAccessTokenClaimsOnRefresh")
.HasColumnType("tinyint(1)");
b.Property("UserCodeType")
.HasColumnType("varchar(100) CHARACTER SET utf8mb4")
.HasMaxLength(100);
b.Property("UserSsoLifetime")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("IdentityServerClients");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Type")
.HasColumnType("varchar(250) CHARACTER SET utf8mb4")
.HasMaxLength(250);
b.Property("Value")
.HasColumnType("varchar(250) CHARACTER SET utf8mb4")
.HasMaxLength(250);
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientClaims");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Origin")
.HasColumnType("varchar(150) CHARACTER SET utf8mb4")
.HasMaxLength(150);
b.HasKey("ClientId", "Origin");
b.ToTable("IdentityServerClientCorsOrigins");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("GrantType")
.HasColumnType("varchar(250) CHARACTER SET utf8mb4")
.HasMaxLength(250);
b.HasKey("ClientId", "GrantType");
b.ToTable("IdentityServerClientGrantTypes");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Provider")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.HasKey("ClientId", "Provider");
b.ToTable("IdentityServerClientIdPRestrictions");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("PostLogoutRedirectUri")
.HasColumnType("varchar(300) CHARACTER SET utf8mb4")
.HasMaxLength(300);
b.HasKey("ClientId", "PostLogoutRedirectUri");
b.ToTable("IdentityServerClientPostLogoutRedirectUris");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Key")
.HasColumnType("varchar(250) CHARACTER SET utf8mb4")
.HasMaxLength(250);
b.Property("Value")
.IsRequired()
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.HasKey("ClientId", "Key");
b.ToTable("IdentityServerClientProperties");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("RedirectUri")
.HasColumnType("varchar(300) CHARACTER SET utf8mb4")
.HasMaxLength(300);
b.HasKey("ClientId", "RedirectUri");
b.ToTable("IdentityServerClientRedirectUris");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Scope")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.HasKey("ClientId", "Scope");
b.ToTable("IdentityServerClientScopes");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Type")
.HasColumnType("varchar(250) CHARACTER SET utf8mb4")
.HasMaxLength(250);
b.Property("Value")
.HasColumnType("varchar(300) CHARACTER SET utf8mb4")
.HasMaxLength(300);
b.Property("Description")
.HasColumnType("varchar(2000) CHARACTER SET utf8mb4")
.HasMaxLength(2000);
b.Property("Expiration")
.HasColumnType("datetime(6)");
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientSecrets");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ClientId")
.IsRequired()
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("CreationTime")
.HasColumnName("CreationTime")
.HasColumnType("datetime(6)");
b.Property("CreatorId")
.HasColumnName("CreatorId")
.HasColumnType("char(36)");
b.Property("Data")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(50000);
b.Property("DeviceCode")
.IsRequired()
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("Expiration")
.IsRequired()
.HasColumnType("datetime(6)");
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("SubjectId")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("UserCode")
.IsRequired()
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.HasKey("Id");
b.HasIndex("DeviceCode")
.IsUnique();
b.HasIndex("Expiration");
b.HasIndex("UserCode")
.IsUnique();
b.ToTable("IdentityServerDeviceFlowCodes");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b =>
{
b.Property("Key")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("ClientId")
.IsRequired()
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("CreationTime")
.HasColumnType("datetime(6)");
b.Property("Data")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasMaxLength(10000);
b.Property("Expiration")
.HasColumnType("datetime(6)");
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("Id")
.HasColumnType("char(36)");
b.Property("SubjectId")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("Type")
.IsRequired()
.HasColumnType("varchar(50) CHARACTER SET utf8mb4")
.HasMaxLength(50);
b.HasKey("Key");
b.HasIndex("Expiration");
b.HasIndex("SubjectId", "ClientId", "Type");
b.ToTable("IdentityServerPersistedGrants");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityClaim", b =>
{
b.Property("IdentityResourceId")
.HasColumnType("char(36)");
b.Property("Type")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.HasKey("IdentityResourceId", "Type");
b.ToTable("IdentityServerIdentityClaims");
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp")
.HasColumnType("varchar(40) CHARACTER SET utf8mb4")
.HasMaxLength(40);
b.Property("CreationTime")
.HasColumnName("CreationTime")
.HasColumnType("datetime(6)");
b.Property("CreatorId")
.HasColumnName("CreatorId")
.HasColumnType("char(36)");
b.Property("DeleterId")
.HasColumnName("DeleterId")
.HasColumnType("char(36)");
b.Property("DeletionTime")
.HasColumnName("DeletionTime")
.HasColumnType("datetime(6)");
b.Property("Description")
.HasColumnType("varchar(1000) CHARACTER SET utf8mb4")
.HasMaxLength(1000);
b.Property("DisplayName")
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("Emphasize")
.HasColumnType("tinyint(1)");
b.Property("Enabled")
.HasColumnType("tinyint(1)");
b.Property("ExtraProperties")
.HasColumnName("ExtraProperties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnName("IsDeleted")
.HasColumnType("tinyint(1)")
.HasDefaultValue(false);
b.Property("LastModificationTime")
.HasColumnName("LastModificationTime")
.HasColumnType("datetime(6)");
b.Property("LastModifierId")
.HasColumnName("LastModifierId")
.HasColumnType("char(36)");
b.Property("Name")
.IsRequired()
.HasColumnType("varchar(200) CHARACTER SET utf8mb4")
.HasMaxLength(200);
b.Property("Properties")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("Required")
.HasColumnType("tinyint(1)");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("tinyint(1)");
b.HasKey("Id");
b.ToTable("IdentityServerIdentityResources");
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
.WithMany("Claims")
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("Claims")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("Logins")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
{
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
.WithMany()
.HasForeignKey("OrganizationUnitId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("OrganizationUnits")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("Roles")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
{
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
.WithMany("Tokens")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
{
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
.WithMany()
.HasForeignKey("ParentId");
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
{
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
.WithMany("Roles")
.HasForeignKey("OrganizationUnitId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
{
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null)
.WithMany("UserClaims")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScope", b =>
{
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null)
.WithMany("Scopes")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScopeClaim", b =>
{
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiScope", null)
.WithMany("UserClaims")
.HasForeignKey("ApiResourceId", "Name")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiSecret", b =>
{
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null)
.WithMany("Secrets")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
{
b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
.WithMany("Claims")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
{
b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
.WithMany("AllowedCorsOrigins")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
{
b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
.WithMany("AllowedGrantTypes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
{
b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
.WithMany("IdentityProviderRestrictions")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
{
b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
.WithMany("PostLogoutRedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
{
b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
.WithMany("Properties")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
{
b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
.WithMany("RedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
{
b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
.WithMany("AllowedScopes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
{
b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null)
.WithMany("ClientSecrets")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityClaim", b =>
{
b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null)
.WithMany("UserClaims")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
#pragma warning restore 612, 618
}
}
}