//
using System;
using BookStore.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace BookStore.Migrations
{
[DbContext(typeof(BookStoreDbContext))]
[Migration("20220509122124_Add_Books")]
partial class Add_Books
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql)
.HasAnnotation("ProductVersion", "6.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("BookStore.Entities.Book", b =>
{
b.Property("Id")
.HasColumnType("uuid");
b.Property("BookName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasComment("书籍名称");
b.Property("Description")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasComment("描述");
b.HasKey("Id");
b.ToTable("Books", (string)null);
b.HasComment("书籍");
});
modelBuilder.Entity("Sanhe.Abp.LocalizationManagement.Language", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property("CultureName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("CultureName");
b.Property("DisplayName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("DisplayName");
b.Property("Enable")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(true);
b.Property("FlagIcon")
.HasMaxLength(30)
.HasColumnType("character varying(30)")
.HasColumnName("FlagIcon");
b.Property("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("LastModifierId");
b.Property("UiCultureName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("UiCultureName");
b.HasKey("Id");
b.HasIndex("CultureName");
b.ToTable("AbpLocalizationLanguages", (string)null);
});
modelBuilder.Entity("Sanhe.Abp.LocalizationManagement.Resource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property("Description")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("Description");
b.Property("DisplayName")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("DisplayName");
b.Property("Enable")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(true);
b.Property("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("Name");
b.HasKey("Id");
b.HasIndex("Name");
b.ToTable("AbpLocalizationResources", (string)null);
});
modelBuilder.Entity("Sanhe.Abp.LocalizationManagement.Text", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("CultureName")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("CultureName");
b.Property("Key")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("Key");
b.Property("ResourceName")
.HasColumnType("text");
b.Property("Value")
.HasMaxLength(2048)
.HasColumnType("character varying(2048)")
.HasColumnName("Value");
b.HasKey("Id");
b.HasIndex("Key");
b.ToTable("AbpLocalizationTexts", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ApplicationName")
.HasMaxLength(96)
.HasColumnType("character varying(96)")
.HasColumnName("ApplicationName");
b.Property("BrowserInfo")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("BrowserInfo");
b.Property("ClientId")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("ClientId");
b.Property("ClientIpAddress")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("ClientIpAddress");
b.Property("ClientName")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("ClientName");
b.Property("Comments")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("Comments");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CorrelationId")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("CorrelationId");
b.Property("Exceptions")
.HasColumnType("text");
b.Property("ExecutionDuration")
.HasColumnType("integer")
.HasColumnName("ExecutionDuration");
b.Property("ExecutionTime")
.HasColumnType("timestamp without time zone");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("HttpMethod")
.HasMaxLength(16)
.HasColumnType("character varying(16)")
.HasColumnName("HttpMethod");
b.Property("HttpStatusCode")
.HasColumnType("integer")
.HasColumnName("HttpStatusCode");
b.Property("ImpersonatorTenantId")
.HasColumnType("uuid")
.HasColumnName("ImpersonatorTenantId");
b.Property("ImpersonatorTenantName")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("ImpersonatorTenantName");
b.Property("ImpersonatorUserId")
.HasColumnType("uuid")
.HasColumnName("ImpersonatorUserId");
b.Property("ImpersonatorUserName")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("ImpersonatorUserName");
b.Property("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.Property("TenantName")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("TenantName");
b.Property("Url")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("Url");
b.Property("UserId")
.HasColumnType("uuid")
.HasColumnName("UserId");
b.Property("UserName")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("UserName");
b.HasKey("Id");
b.HasIndex("TenantId", "ExecutionTime");
b.HasIndex("TenantId", "UserId", "ExecutionTime");
b.ToTable("AbpAuditLogs", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AuditLogId")
.HasColumnType("uuid")
.HasColumnName("AuditLogId");
b.Property("ExecutionDuration")
.HasColumnType("integer")
.HasColumnName("ExecutionDuration");
b.Property("ExecutionTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("ExecutionTime");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("MethodName")
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("MethodName");
b.Property("Parameters")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)")
.HasColumnName("Parameters");
b.Property("ServiceName")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("ServiceName");
b.Property("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("AuditLogId");
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
b.ToTable("AbpAuditLogActions", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AuditLogId")
.HasColumnType("uuid")
.HasColumnName("AuditLogId");
b.Property("ChangeTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("ChangeTime");
b.Property("ChangeType")
.HasColumnType("smallint")
.HasColumnName("ChangeType");
b.Property("EntityId")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("EntityId");
b.Property("EntityTenantId")
.HasColumnType("uuid");
b.Property("EntityTypeFullName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("EntityTypeFullName");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("AuditLogId");
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
b.ToTable("AbpEntityChanges", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("EntityChangeId")
.HasColumnType("uuid");
b.Property("NewValue")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("NewValue");
b.Property("OriginalValue")
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasColumnName("OriginalValue");
b.Property("PropertyName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("PropertyName");
b.Property("PropertyTypeFullName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("PropertyTypeFullName");
b.Property("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("EntityChangeId");
b.ToTable("AbpEntityPropertyChanges", (string)null);
});
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)");
b.Property("ProviderKey")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("ProviderName")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("Value")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)");
b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique();
b.ToTable("AbpFeatureValues", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("Description")
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("IsStatic")
.HasColumnType("boolean");
b.Property("Name")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("Regex")
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("RegexDescription")
.HasMaxLength(128)
.HasColumnType("character varying(128)");
b.Property("Required")
.HasColumnType("boolean");
b.Property("ValueType")
.HasColumnType("integer");
b.HasKey("Id");
b.ToTable("AbpClaimTypes", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("SourceTenantId")
.HasColumnType("uuid");
b.Property("SourceUserId")
.HasColumnType("uuid");
b.Property("TargetTenantId")
.HasColumnType("uuid");
b.Property("TargetUserId")
.HasColumnType("uuid");
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("uuid");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("IsDefault")
.HasColumnType("boolean")
.HasColumnName("IsDefault");
b.Property("IsPublic")
.HasColumnType("boolean")
.HasColumnName("IsPublic");
b.Property("IsStatic")
.HasColumnType("boolean")
.HasColumnName("IsStatic");
b.Property("Name")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("NormalizedName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("NormalizedName");
b.ToTable("AbpRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
{
b.Property("Id")
.HasColumnType("uuid");
b.Property("ClaimType")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("ClaimValue")
.HasMaxLength(1024)
.HasColumnType("character varying(1024)");
b.Property("RoleId")
.HasColumnType("uuid");
b.Property("TenantId")
.HasColumnType("uuid")
.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("uuid");
b.Property("Action")
.HasMaxLength(96)
.HasColumnType("character varying(96)");
b.Property("ApplicationName")
.HasMaxLength(96)
.HasColumnType("character varying(96)");
b.Property("BrowserInfo")
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("ClientId")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("ClientIpAddress")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CorrelationId")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("CreationTime")
.HasColumnType("timestamp without time zone");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("Identity")
.HasMaxLength(96)
.HasColumnType("character varying(96)");
b.Property("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.Property("TenantName")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("UserId")
.HasColumnType("uuid");
b.Property("UserName")
.HasMaxLength(256)
.HasColumnType("character varying(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("uuid");
b.Property("AccessFailedCount")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(0)
.HasColumnName("AccessFailedCount");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("uuid")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("DeletionTime");
b.Property("Email")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("Email");
b.Property("EmailConfirmed")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("EmailConfirmed");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("IsActive")
.HasColumnType("boolean");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("IsExternal")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("IsExternal");
b.Property("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("LastModifierId");
b.Property("LockoutEnabled")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("LockoutEnabled");
b.Property("LockoutEnd")
.HasColumnType("timestamp with time zone");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("Name");
b.Property("NormalizedEmail")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("NormalizedEmail");
b.Property("NormalizedUserName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("NormalizedUserName");
b.Property("PasswordHash")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("PasswordHash");
b.Property("PhoneNumber")
.HasMaxLength(16)
.HasColumnType("character varying(16)")
.HasColumnName("PhoneNumber");
b.Property("PhoneNumberConfirmed")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("PhoneNumberConfirmed");
b.Property("SecurityStamp")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasColumnName("SecurityStamp");
b.Property("Surname")
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("Surname");
b.Property("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.Property("TwoFactorEnabled")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("TwoFactorEnabled");
b.Property("UserName")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(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("uuid");
b.Property("ClaimType")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("ClaimValue")
.HasMaxLength(1024)
.HasColumnType("character varying(1024)");
b.Property("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.Property("UserId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AbpUserClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
{
b.Property("UserId")
.HasColumnType("uuid");
b.Property("LoginProvider")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("ProviderDisplayName")
.HasMaxLength(128)
.HasColumnType("character varying(128)");
b.Property("ProviderKey")
.IsRequired()
.HasMaxLength(196)
.HasColumnType("character varying(196)");
b.Property("TenantId")
.HasColumnType("uuid")
.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("uuid");
b.Property("UserId")
.HasColumnType("uuid");
b.Property("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property("TenantId")
.HasColumnType("uuid")
.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("uuid");
b.Property("RoleId")
.HasColumnType("uuid");
b.Property("TenantId")
.HasColumnType("uuid")
.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("uuid");
b.Property("LoginProvider")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("Name")
.HasMaxLength(128)
.HasColumnType("character varying(128)");
b.Property("TenantId")
.HasColumnType("uuid")
.HasColumnName("TenantId");
b.Property("Value")
.HasColumnType("text");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AbpUserTokens", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Code")
.IsRequired()
.HasMaxLength(95)
.HasColumnType("character varying(95)")
.HasColumnName("Code");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("uuid")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("DeletionTime");
b.Property("DisplayName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("DisplayName");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("LastModifierId");
b.Property("ParentId")
.HasColumnType("uuid");
b.Property("TenantId")
.HasColumnType("uuid")
.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("uuid");
b.Property("RoleId")
.HasColumnType("uuid");
b.Property("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property("TenantId")
.HasColumnType("uuid")
.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("uuid");
b.Property("AllowedAccessTokenSigningAlgorithms")
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("uuid")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("DeletionTime");
b.Property("Description")
.HasMaxLength(1000)
.HasColumnType("character varying(1000)");
b.Property("DisplayName")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("boolean");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
{
b.Property("ApiResourceId")
.HasColumnType("uuid");
b.Property("Type")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.HasKey("ApiResourceId", "Type");
b.ToTable("IdentityServerApiResourceClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b =>
{
b.Property("ApiResourceId")
.HasColumnType("uuid");
b.Property("Key")
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("Value")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.HasKey("ApiResourceId", "Key", "Value");
b.ToTable("IdentityServerApiResourceProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b =>
{
b.Property("ApiResourceId")
.HasColumnType("uuid");
b.Property("Scope")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.HasKey("ApiResourceId", "Scope");
b.ToTable("IdentityServerApiResourceScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b =>
{
b.Property("ApiResourceId")
.HasColumnType("uuid");
b.Property("Type")
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("Value")
.HasMaxLength(4000)
.HasColumnType("character varying(4000)");
b.Property("Description")
.HasMaxLength(1000)
.HasColumnType("character varying(1000)");
b.Property("Expiration")
.HasColumnType("timestamp without time zone");
b.HasKey("ApiResourceId", "Type", "Value");
b.ToTable("IdentityServerApiResourceSecrets", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("uuid")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("DeletionTime");
b.Property("Description")
.HasMaxLength(1000)
.HasColumnType("character varying(1000)");
b.Property("DisplayName")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("Emphasize")
.HasColumnType("boolean");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("Required")
.HasColumnType("boolean");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("boolean");
b.HasKey("Id");
b.ToTable("IdentityServerApiScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b =>
{
b.Property("ApiScopeId")
.HasColumnType("uuid");
b.Property("Type")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.HasKey("ApiScopeId", "Type");
b.ToTable("IdentityServerApiScopeClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b =>
{
b.Property("ApiScopeId")
.HasColumnType("uuid");
b.Property("Key")
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("Value")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.HasKey("ApiScopeId", "Key", "Value");
b.ToTable("IdentityServerApiScopeProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AbsoluteRefreshTokenLifetime")
.HasColumnType("integer");
b.Property("AccessTokenLifetime")
.HasColumnType("integer");
b.Property("AccessTokenType")
.HasColumnType("integer");
b.Property("AllowAccessTokensViaBrowser")
.HasColumnType("boolean");
b.Property("AllowOfflineAccess")
.HasColumnType("boolean");
b.Property("AllowPlainTextPkce")
.HasColumnType("boolean");
b.Property("AllowRememberConsent")
.HasColumnType("boolean");
b.Property