//
using System;
using LY.MicroService.IdentityServer.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace LY.MicroService.IdentityServer.Migrations
{
[DbContext(typeof(IdentityServertMigrationsDbContext))]
partial class IdentityServertMigrationsDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "6.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("Description")
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsStatic")
.HasColumnType("tinyint(1)");
b.Property("Name")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property("Regex")
.HasMaxLength(512)
.HasColumnType("varchar(512)");
b.Property("RegexDescription")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property("Required")
.HasColumnType("tinyint(1)");
b.Property("ValueType")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("AbpClaimTypes", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("SourceTenantId")
.HasColumnType("char(36)");
b.Property("SourceUserId")
.HasColumnType("char(36)");
b.Property("TargetTenantId")
.HasColumnType("char(36)");
b.Property("TargetUserId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId")
.IsUnique();
b.ToTable("AbpLinkUsers", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDefault")
.HasColumnType("tinyint(1)")
.HasColumnName("IsDefault");
b.Property("IsPublic")
.HasColumnType("tinyint(1)")
.HasColumnName("IsPublic");
b.Property("IsStatic")
.HasColumnType("tinyint(1)")
.HasColumnName("IsStatic");
b.Property("Name")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property("NormalizedName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("NormalizedName");
b.ToTable("AbpRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
{
b.Property("Id")
.HasColumnType("char(36)");
b.Property("ClaimType")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property("ClaimValue")
.HasMaxLength(1024)
.HasColumnType("varchar(1024)");
b.Property("RoleId")
.HasColumnType("char(36)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AbpRoleClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("Action")
.HasMaxLength(96)
.HasColumnType("varchar(96)");
b.Property("ApplicationName")
.HasMaxLength(96)
.HasColumnType("varchar(96)");
b.Property("BrowserInfo")
.HasMaxLength(512)
.HasColumnType("varchar(512)");
b.Property("ClientId")
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("ClientIpAddress")
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CorrelationId")
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("CreationTime")
.HasColumnType("datetime(6)");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("Identity")
.HasMaxLength(96)
.HasColumnType("varchar(96)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("TenantName")
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("UserName")
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.HasKey("Id");
b.HasIndex("TenantId", "Action");
b.HasIndex("TenantId", "ApplicationName");
b.HasIndex("TenantId", "Identity");
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpSecurityLogs", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("AccessFailedCount")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasDefaultValue(0)
.HasColumnName("AccessFailedCount");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("Email")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasColumnName("Email");
b.Property("EmailConfirmed")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("EmailConfirmed");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsActive")
.HasColumnType("tinyint(1)");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("IsExternal")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsExternal");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("LockoutEnabled")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("LockoutEnabled");
b.Property("LockoutEnd")
.HasColumnType("datetime(6)");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("varchar(64)")
.HasColumnName("Name");
b.Property("NormalizedEmail")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasColumnName("NormalizedEmail");
b.Property("NormalizedUserName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasColumnName("NormalizedUserName");
b.Property("PasswordHash")
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasColumnName("PasswordHash");
b.Property("PhoneNumber")
.HasMaxLength(16)
.HasColumnType("varchar(16)")
.HasColumnName("PhoneNumber");
b.Property("PhoneNumberConfirmed")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("PhoneNumberConfirmed");
b.Property("SecurityStamp")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasColumnName("SecurityStamp");
b.Property("Surname")
.HasMaxLength(64)
.HasColumnType("varchar(64)")
.HasColumnName("Surname");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("TwoFactorEnabled")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("TwoFactorEnabled");
b.Property("UserName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasColumnName("UserName");
b.HasKey("Id");
b.HasIndex("Email");
b.HasIndex("NormalizedEmail");
b.HasIndex("NormalizedUserName");
b.HasIndex("UserName");
b.ToTable("AbpUsers", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
{
b.Property("Id")
.HasColumnType("char(36)");
b.Property("ClaimType")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property("ClaimValue")
.HasMaxLength(1024)
.HasColumnType("varchar(1024)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("UserId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AbpUserClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("LoginProvider")
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("ProviderDisplayName")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property("ProviderKey")
.IsRequired()
.HasMaxLength(196)
.HasColumnType("varchar(196)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("UserId", "LoginProvider");
b.HasIndex("LoginProvider", "ProviderKey");
b.ToTable("AbpUserLogins", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
{
b.Property("OrganizationUnitId")
.HasColumnType("char(36)");
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("OrganizationUnitId", "UserId");
b.HasIndex("UserId", "OrganizationUnitId");
b.ToTable("AbpUserOrganizationUnits", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
{
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("RoleId")
.HasColumnType("char(36)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId", "UserId");
b.ToTable("AbpUserRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
{
b.Property("UserId")
.HasColumnType("char(36)");
b.Property("LoginProvider")
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("Name")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("Value")
.HasColumnType("longtext");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AbpUserTokens", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("Code")
.IsRequired()
.HasMaxLength(95)
.HasColumnType("varchar(95)")
.HasColumnName("Code");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("DisplayName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasColumnName("DisplayName");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("ParentId")
.HasColumnType("char(36)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code");
b.HasIndex("ParentId");
b.ToTable("AbpOrganizationUnits", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
{
b.Property("OrganizationUnitId")
.HasColumnType("char(36)");
b.Property("RoleId")
.HasColumnType("char(36)");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("OrganizationUnitId", "RoleId");
b.HasIndex("RoleId", "OrganizationUnitId");
b.ToTable("AbpOrganizationUnitRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("AllowedAccessTokenSigningAlgorithms")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("Description")
.HasMaxLength(1000)
.HasColumnType("varchar(1000)");
b.Property("DisplayName")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("Enabled")
.HasColumnType("tinyint(1)");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("tinyint(1)");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
{
b.Property("ApiResourceId")
.HasColumnType("char(36)");
b.Property("Type")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.HasKey("ApiResourceId", "Type");
b.ToTable("IdentityServerApiResourceClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b =>
{
b.Property("ApiResourceId")
.HasColumnType("char(36)");
b.Property("Key")
.HasMaxLength(250)
.HasColumnType("varchar(250)");
b.Property("Value")
.HasMaxLength(300)
.HasColumnType("varchar(300)");
b.HasKey("ApiResourceId", "Key", "Value");
b.ToTable("IdentityServerApiResourceProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b =>
{
b.Property("ApiResourceId")
.HasColumnType("char(36)");
b.Property("Scope")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.HasKey("ApiResourceId", "Scope");
b.ToTable("IdentityServerApiResourceScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b =>
{
b.Property("ApiResourceId")
.HasColumnType("char(36)");
b.Property("Type")
.HasMaxLength(250)
.HasColumnType("varchar(250)");
b.Property("Value")
.HasMaxLength(300)
.HasColumnType("varchar(300)");
b.Property("Description")
.HasMaxLength(1000)
.HasColumnType("varchar(1000)");
b.Property("Expiration")
.HasColumnType("datetime(6)");
b.HasKey("ApiResourceId", "Type", "Value");
b.ToTable("IdentityServerApiResourceSecrets", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("Description")
.HasMaxLength(1000)
.HasColumnType("varchar(1000)");
b.Property("DisplayName")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("Emphasize")
.HasColumnType("tinyint(1)");
b.Property("Enabled")
.HasColumnType("tinyint(1)");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("Required")
.HasColumnType("tinyint(1)");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("tinyint(1)");
b.HasKey("Id");
b.ToTable("IdentityServerApiScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b =>
{
b.Property("ApiScopeId")
.HasColumnType("char(36)");
b.Property("Type")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.HasKey("ApiScopeId", "Type");
b.ToTable("IdentityServerApiScopeClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b =>
{
b.Property("ApiScopeId")
.HasColumnType("char(36)");
b.Property("Key")
.HasMaxLength(250)
.HasColumnType("varchar(250)");
b.Property("Value")
.HasMaxLength(300)
.HasColumnType("varchar(300)");
b.HasKey("ApiScopeId", "Key", "Value");
b.ToTable("IdentityServerApiScopeProperties", (string)null);
});
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("AllowedIdentityTokenSigningAlgorithms")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
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")
.HasMaxLength(2000)
.HasColumnType("varchar(2000)");
b.Property("ClientClaimsPrefix")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("ClientId")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("ClientName")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("ClientUri")
.HasMaxLength(2000)
.HasColumnType("varchar(2000)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("ConsentLifetime")
.HasColumnType("int");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("Description")
.HasMaxLength(1000)
.HasColumnType("varchar(1000)");
b.Property("DeviceCodeLifetime")
.HasColumnType("int");
b.Property("EnableLocalLogin")
.HasColumnType("tinyint(1)");
b.Property("Enabled")
.HasColumnType("tinyint(1)");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("FrontChannelLogoutSessionRequired")
.HasColumnType("tinyint(1)");
b.Property("FrontChannelLogoutUri")
.HasMaxLength(2000)
.HasColumnType("varchar(2000)");
b.Property("IdentityTokenLifetime")
.HasColumnType("int");
b.Property("IncludeJwtId")
.HasColumnType("tinyint(1)");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("LogoUri")
.HasMaxLength(2000)
.HasColumnType("varchar(2000)");
b.Property("PairWiseSubjectSalt")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("ProtocolType")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(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("RequireRequestObject")
.HasColumnType("tinyint(1)");
b.Property("SlidingRefreshTokenLifetime")
.HasColumnType("int");
b.Property("UpdateAccessTokenClaimsOnRefresh")
.HasColumnType("tinyint(1)");
b.Property("UserCodeType")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("UserSsoLifetime")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("IdentityServerClients", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Type")
.HasMaxLength(250)
.HasColumnType("varchar(250)");
b.Property("Value")
.HasMaxLength(250)
.HasColumnType("varchar(250)");
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Origin")
.HasMaxLength(150)
.HasColumnType("varchar(150)");
b.HasKey("ClientId", "Origin");
b.ToTable("IdentityServerClientCorsOrigins", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("GrantType")
.HasMaxLength(250)
.HasColumnType("varchar(250)");
b.HasKey("ClientId", "GrantType");
b.ToTable("IdentityServerClientGrantTypes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Provider")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.HasKey("ClientId", "Provider");
b.ToTable("IdentityServerClientIdPRestrictions", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("PostLogoutRedirectUri")
.HasMaxLength(300)
.HasColumnType("varchar(300)");
b.HasKey("ClientId", "PostLogoutRedirectUri");
b.ToTable("IdentityServerClientPostLogoutRedirectUris", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Key")
.HasMaxLength(250)
.HasColumnType("varchar(250)");
b.Property("Value")
.HasMaxLength(300)
.HasColumnType("varchar(300)");
b.HasKey("ClientId", "Key", "Value");
b.ToTable("IdentityServerClientProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("RedirectUri")
.HasMaxLength(300)
.HasColumnType("varchar(300)");
b.HasKey("ClientId", "RedirectUri");
b.ToTable("IdentityServerClientRedirectUris", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Scope")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.HasKey("ClientId", "Scope");
b.ToTable("IdentityServerClientScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
{
b.Property("ClientId")
.HasColumnType("char(36)");
b.Property("Type")
.HasMaxLength(250)
.HasColumnType("varchar(250)");
b.Property("Value")
.HasMaxLength(300)
.HasColumnType("varchar(300)");
b.Property("Description")
.HasMaxLength(2000)
.HasColumnType("varchar(2000)");
b.Property("Expiration")
.HasColumnType("datetime(6)");
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientSecrets", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ClientId")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("Data")
.IsRequired()
.HasMaxLength(10000)
.HasColumnType("varchar(10000)");
b.Property("Description")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("DeviceCode")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("Expiration")
.IsRequired()
.HasColumnType("datetime(6)");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("SessionId")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("SubjectId")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("UserCode")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.HasKey("Id");
b.HasIndex("DeviceCode")
.IsUnique();
b.HasIndex("Expiration");
b.HasIndex("UserCode");
b.ToTable("IdentityServerDeviceFlowCodes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b =>
{
b.Property("Key")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("ClientId")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("ConsumedTime")
.HasColumnType("datetime(6)");
b.Property("CreationTime")
.HasColumnType("datetime(6)");
b.Property