mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1141 lines
39 KiB
1141 lines
39 KiB
// <auto-generated />
|
|
using System;
|
|
using AuthServer.Host.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
namespace AuthServer.Host.Migrations
|
|
{
|
|
[DbContext(typeof(AuthServerDbContext))]
|
|
partial class AuthServerDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("BrowserInfo")
|
|
.HasColumnName("BrowserInfo")
|
|
.HasMaxLength(512);
|
|
|
|
b.Property<string>("ClientIpAddress")
|
|
.HasColumnName("ClientIpAddress")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<string>("ClientName")
|
|
.HasColumnName("ClientName")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<string>("Comments")
|
|
.HasColumnName("Comments")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("ConcurrencyStamp");
|
|
|
|
b.Property<string>("Exceptions")
|
|
.HasColumnName("Exceptions")
|
|
.HasMaxLength(4000);
|
|
|
|
b.Property<int>("ExecutionDuration")
|
|
.HasColumnName("ExecutionDuration");
|
|
|
|
b.Property<DateTime>("ExecutionTime");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("HttpMethod")
|
|
.HasColumnName("HttpMethod")
|
|
.HasMaxLength(16);
|
|
|
|
b.Property<int?>("HttpStatusCode")
|
|
.HasColumnName("HttpStatusCode");
|
|
|
|
b.Property<Guid?>("ImpersonatorTenantId")
|
|
.HasColumnName("ImpersonatorTenantId");
|
|
|
|
b.Property<Guid?>("ImpersonatorUserId")
|
|
.HasColumnName("ImpersonatorUserId");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<string>("Url")
|
|
.HasColumnName("Url")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<Guid?>("UserId")
|
|
.HasColumnName("UserId");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasColumnName("UserName")
|
|
.HasMaxLength(256);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TenantId", "ExecutionTime");
|
|
|
|
b.HasIndex("TenantId", "UserId", "ExecutionTime");
|
|
|
|
b.ToTable("AbpAuditLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<Guid>("AuditLogId")
|
|
.HasColumnName("AuditLogId");
|
|
|
|
b.Property<int>("ExecutionDuration")
|
|
.HasColumnName("ExecutionDuration");
|
|
|
|
b.Property<DateTime>("ExecutionTime")
|
|
.HasColumnName("ExecutionTime");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("MethodName")
|
|
.HasColumnName("MethodName")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<string>("Parameters")
|
|
.HasColumnName("Parameters")
|
|
.HasMaxLength(2000);
|
|
|
|
b.Property<string>("ServiceName")
|
|
.HasColumnName("ServiceName")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AuditLogId");
|
|
|
|
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
|
|
|
|
b.ToTable("AbpAuditLogActions");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<Guid>("AuditLogId")
|
|
.HasColumnName("AuditLogId");
|
|
|
|
b.Property<DateTime>("ChangeTime")
|
|
.HasColumnName("ChangeTime");
|
|
|
|
b.Property<byte>("ChangeType")
|
|
.HasColumnName("ChangeType");
|
|
|
|
b.Property<string>("EntityId")
|
|
.IsRequired()
|
|
.HasColumnName("EntityId")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<string>("EntityTypeFullName")
|
|
.IsRequired()
|
|
.HasColumnName("EntityTypeFullName")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AuditLogId");
|
|
|
|
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
|
|
|
|
b.ToTable("AbpEntityChanges");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<Guid>("EntityChangeId");
|
|
|
|
b.Property<string>("NewValue")
|
|
.HasColumnName("NewValue")
|
|
.HasMaxLength(512);
|
|
|
|
b.Property<string>("OriginalValue")
|
|
.HasColumnName("OriginalValue")
|
|
.HasMaxLength(512);
|
|
|
|
b.Property<string>("PropertyName")
|
|
.IsRequired()
|
|
.HasColumnName("PropertyName")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<string>("PropertyTypeFullName")
|
|
.IsRequired()
|
|
.HasColumnName("PropertyTypeFullName")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("EntityChangeId");
|
|
|
|
b.ToTable("AbpEntityPropertyChanges");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.IsRequired()
|
|
.HasColumnName("ConcurrencyStamp")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsStatic");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("Regex")
|
|
.HasMaxLength(512);
|
|
|
|
b.Property<string>("RegexDescription")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<bool>("Required");
|
|
|
|
b.Property<int>("ValueType");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("AbpClaimTypes");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.IsRequired()
|
|
.HasColumnName("ConcurrencyStamp")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDefault")
|
|
.HasColumnName("IsDefault");
|
|
|
|
b.Property<bool>("IsPublic")
|
|
.HasColumnName("IsPublic");
|
|
|
|
b.Property<bool>("IsStatic")
|
|
.HasColumnName("IsStatic");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("NormalizedName")
|
|
.IsRequired()
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedName");
|
|
|
|
b.ToTable("AbpRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("ClaimType")
|
|
.IsRequired()
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasMaxLength(1024);
|
|
|
|
b.Property<Guid>("RoleId");
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AbpRoleClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("AccessFailedCount")
|
|
.HasDefaultValue(0);
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("Email")
|
|
.HasColumnName("Email")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("EmailConfirmed")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("IsDeleted")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("LockoutEnabled")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnName("Name")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
.HasColumnName("NormalizedEmail")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
.IsRequired()
|
|
.HasColumnName("NormalizedUserName")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasColumnName("PasswordHash")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasColumnName("PhoneNumber")
|
|
.HasMaxLength(16);
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("PhoneNumberConfirmed")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
.IsRequired()
|
|
.HasColumnName("SecurityStamp")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("Surname")
|
|
.HasColumnName("Surname")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<Guid?>("TenantId")
|
|
.HasColumnName("TenantId");
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("TwoFactorEnabled")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasColumnName("UserName")
|
|
.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<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("ClaimType")
|
|
.IsRequired()
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasMaxLength(1024);
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.Property<Guid>("UserId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AbpUserClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
|
|
{
|
|
b.Property<Guid>("UserId");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.IsRequired()
|
|
.HasMaxLength(196);
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.HasKey("UserId", "LoginProvider");
|
|
|
|
b.HasIndex("LoginProvider", "ProviderKey");
|
|
|
|
b.ToTable("AbpUserLogins");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
|
|
{
|
|
b.Property<Guid>("UserId");
|
|
|
|
b.Property<Guid>("RoleId");
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
b.HasIndex("RoleId", "UserId");
|
|
|
|
b.ToTable("AbpUserRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
|
|
{
|
|
b.Property<Guid>("UserId");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.Property<string>("Value");
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
b.ToTable("AbpUserTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("ConcurrencyStamp");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000);
|
|
|
|
b.Property<string>("DisplayName")
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<bool>("Enabled");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("IdentityServerApiResources");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
|
|
{
|
|
b.Property<Guid>("ApiResourceId");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(196);
|
|
|
|
b.HasKey("ApiResourceId", "Type");
|
|
|
|
b.ToTable("IdentityServerApiClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScope", b =>
|
|
{
|
|
b.Property<Guid>("ApiResourceId");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(196);
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<string>("DisplayName")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<bool>("Emphasize");
|
|
|
|
b.Property<bool>("Required");
|
|
|
|
b.Property<bool>("ShowInDiscoveryDocument");
|
|
|
|
b.HasKey("ApiResourceId", "Name");
|
|
|
|
b.ToTable("IdentityServerApiScopes");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScopeClaim", b =>
|
|
{
|
|
b.Property<Guid>("ApiResourceId");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(196);
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(196);
|
|
|
|
b.HasKey("ApiResourceId", "Name", "Type");
|
|
|
|
b.ToTable("IdentityServerApiScopeClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiSecret", b =>
|
|
{
|
|
b.Property<Guid>("ApiResourceId");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(32);
|
|
|
|
b.Property<string>("Value")
|
|
.HasMaxLength(196);
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<DateTime?>("Expiration");
|
|
|
|
b.HasKey("ApiResourceId", "Type", "Value");
|
|
|
|
b.ToTable("IdentityServerApiSecrets");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<int>("AbsoluteRefreshTokenLifetime");
|
|
|
|
b.Property<int>("AccessTokenLifetime");
|
|
|
|
b.Property<int>("AccessTokenType");
|
|
|
|
b.Property<bool>("AllowAccessTokensViaBrowser");
|
|
|
|
b.Property<bool>("AllowOfflineAccess");
|
|
|
|
b.Property<bool>("AllowPlainTextPkce");
|
|
|
|
b.Property<bool>("AllowRememberConsent");
|
|
|
|
b.Property<bool>("AlwaysIncludeUserClaimsInIdToken");
|
|
|
|
b.Property<bool>("AlwaysSendClientClaims");
|
|
|
|
b.Property<int>("AuthorizationCodeLifetime");
|
|
|
|
b.Property<bool>("BackChannelLogoutSessionRequired");
|
|
|
|
b.Property<string>("BackChannelLogoutUri")
|
|
.HasMaxLength(2000);
|
|
|
|
b.Property<string>("ClientClaimsPrefix")
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<string>("ClientId")
|
|
.IsRequired()
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<string>("ClientName")
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<string>("ClientUri")
|
|
.HasMaxLength(2000);
|
|
|
|
b.Property<string>("ConcurrencyStamp");
|
|
|
|
b.Property<int?>("ConsentLifetime");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000);
|
|
|
|
b.Property<bool>("EnableLocalLogin");
|
|
|
|
b.Property<bool>("Enabled");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("FrontChannelLogoutSessionRequired");
|
|
|
|
b.Property<string>("FrontChannelLogoutUri")
|
|
.HasMaxLength(2000);
|
|
|
|
b.Property<int>("IdentityTokenLifetime");
|
|
|
|
b.Property<bool>("IncludeJwtId");
|
|
|
|
b.Property<string>("LogoUri")
|
|
.HasMaxLength(2000);
|
|
|
|
b.Property<string>("PairWiseSubjectSalt")
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<string>("ProtocolType")
|
|
.IsRequired()
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<int>("RefreshTokenExpiration");
|
|
|
|
b.Property<int>("RefreshTokenUsage");
|
|
|
|
b.Property<bool>("RequireClientSecret");
|
|
|
|
b.Property<bool>("RequireConsent");
|
|
|
|
b.Property<bool>("RequirePkce");
|
|
|
|
b.Property<int>("SlidingRefreshTokenLifetime");
|
|
|
|
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("IdentityServerClients");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
|
|
{
|
|
b.Property<Guid>("ClientId");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(250);
|
|
|
|
b.Property<string>("Value")
|
|
.HasMaxLength(250);
|
|
|
|
b.HasKey("ClientId", "Type", "Value");
|
|
|
|
b.ToTable("IdentityServerClientClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
|
|
{
|
|
b.Property<Guid>("ClientId");
|
|
|
|
b.Property<string>("Origin")
|
|
.HasMaxLength(150);
|
|
|
|
b.HasKey("ClientId", "Origin");
|
|
|
|
b.ToTable("IdentityServerClientCorsOrigins");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
|
|
{
|
|
b.Property<Guid>("ClientId");
|
|
|
|
b.Property<string>("GrantType")
|
|
.HasMaxLength(196);
|
|
|
|
b.HasKey("ClientId", "GrantType");
|
|
|
|
b.ToTable("IdentityServerClientGrantTypes");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
|
|
{
|
|
b.Property<Guid>("ClientId");
|
|
|
|
b.Property<string>("Provider")
|
|
.HasMaxLength(64);
|
|
|
|
b.HasKey("ClientId", "Provider");
|
|
|
|
b.ToTable("IdentityServerClientIdPRestrictions");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
|
|
{
|
|
b.Property<Guid>("ClientId");
|
|
|
|
b.Property<string>("PostLogoutRedirectUri")
|
|
.HasMaxLength(2000);
|
|
|
|
b.HasKey("ClientId", "PostLogoutRedirectUri");
|
|
|
|
b.ToTable("IdentityServerClientPostLogoutRedirectUris");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
|
|
{
|
|
b.Property<Guid>("ClientId");
|
|
|
|
b.Property<string>("Key")
|
|
.HasMaxLength(250);
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(2000);
|
|
|
|
b.HasKey("ClientId", "Key");
|
|
|
|
b.ToTable("IdentityServerClientProperties");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
|
|
{
|
|
b.Property<Guid>("ClientId");
|
|
|
|
b.Property<string>("RedirectUri")
|
|
.HasMaxLength(2000);
|
|
|
|
b.HasKey("ClientId", "RedirectUri");
|
|
|
|
b.ToTable("IdentityServerClientRedirectUris");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
|
|
{
|
|
b.Property<Guid>("ClientId");
|
|
|
|
b.Property<string>("Scope")
|
|
.HasMaxLength(196);
|
|
|
|
b.HasKey("ClientId", "Scope");
|
|
|
|
b.ToTable("IdentityServerClientScopes");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
|
|
{
|
|
b.Property<Guid>("ClientId");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(32);
|
|
|
|
b.Property<string>("Value")
|
|
.HasMaxLength(196);
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(256);
|
|
|
|
b.Property<DateTime?>("Expiration");
|
|
|
|
b.HasKey("ClientId", "Type", "Value");
|
|
|
|
b.ToTable("IdentityServerClientSecrets");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b =>
|
|
{
|
|
b.Property<string>("Key")
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<string>("ClientId")
|
|
.IsRequired()
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<string>("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime");
|
|
|
|
b.Property<string>("Data")
|
|
.IsRequired();
|
|
|
|
b.Property<DateTime?>("Expiration");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<Guid>("Id");
|
|
|
|
b.Property<string>("SubjectId")
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(50);
|
|
|
|
b.HasKey("Key");
|
|
|
|
b.HasIndex("SubjectId", "ClientId", "Type");
|
|
|
|
b.ToTable("IdentityServerPersistedGrants");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityClaim", b =>
|
|
{
|
|
b.Property<Guid>("IdentityResourceId");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(196);
|
|
|
|
b.HasKey("IdentityResourceId", "Type");
|
|
|
|
b.ToTable("IdentityServerIdentityClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("ConcurrencyStamp");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000);
|
|
|
|
b.Property<string>("DisplayName")
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<bool>("Emphasize");
|
|
|
|
b.Property<bool>("Enabled");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200);
|
|
|
|
b.Property<bool>("Required");
|
|
|
|
b.Property<bool>("ShowInDiscoveryDocument");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("IdentityServerIdentityResources");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.IsRequired()
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<string>("ProviderName")
|
|
.IsRequired()
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Name", "ProviderName", "ProviderKey");
|
|
|
|
b.ToTable("AbpPermissionGrants");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<string>("ProviderName")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(2048);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Name", "ProviderName", "ProviderKey");
|
|
|
|
b.ToTable("AbpSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.AuditLogging.AuditLog")
|
|
.WithMany("Actions")
|
|
.HasForeignKey("AuditLogId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.AuditLogging.AuditLog")
|
|
.WithMany("EntityChanges")
|
|
.HasForeignKey("AuditLogId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.AuditLogging.EntityChange")
|
|
.WithMany("PropertyChanges")
|
|
.HasForeignKey("EntityChangeId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.Identity.IdentityRole")
|
|
.WithMany("Claims")
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser")
|
|
.WithMany("Claims")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser")
|
|
.WithMany("Logins")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.Identity.IdentityRole")
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser")
|
|
.WithMany("Roles")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser")
|
|
.WithMany("Tokens")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource")
|
|
.WithMany("UserClaims")
|
|
.HasForeignKey("ApiResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScope", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource")
|
|
.WithMany("Scopes")
|
|
.HasForeignKey("ApiResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScopeClaim", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiScope")
|
|
.WithMany("UserClaims")
|
|
.HasForeignKey("ApiResourceId", "Name")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiSecret", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource")
|
|
.WithMany("Secrets")
|
|
.HasForeignKey("ApiResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.Clients.Client")
|
|
.WithMany("Claims")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.Clients.Client")
|
|
.WithMany("AllowedCorsOrigins")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.Clients.Client")
|
|
.WithMany("AllowedGrantTypes")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.Clients.Client")
|
|
.WithMany("IdentityProviderRestrictions")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.Clients.Client")
|
|
.WithMany("PostLogoutRedirectUris")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.Clients.Client")
|
|
.WithMany("Properties")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.Clients.Client")
|
|
.WithMany("RedirectUris")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.Clients.Client")
|
|
.WithMany("AllowedScopes")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.Clients.Client")
|
|
.WithMany("ClientSecrets")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityClaim", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource")
|
|
.WithMany("UserClaims")
|
|
.HasForeignKey("IdentityResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|