//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Yavsc.Models;
#nullable disable
namespace Yavsc.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.7")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("AllowedAccessTokenSigningAlgorithms")
.HasColumnType("text");
b.Property("Created")
.HasColumnType("timestamp with time zone");
b.Property("Description")
.HasColumnType("text");
b.Property("DisplayName")
.HasColumnType("text");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("LastAccessed")
.HasColumnType("timestamp with time zone");
b.Property("Name")
.HasColumnType("text");
b.Property("NonEditable")
.HasColumnType("boolean");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("boolean");
b.Property("Updated")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.ToTable("ApiResources");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ApiResourceId")
.HasColumnType("integer");
b.Property("Type")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ApiResourceId");
b.ToTable("ApiResourceClaims");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ApiResourceId")
.HasColumnType("integer");
b.Property("Key")
.HasColumnType("text");
b.Property("Value")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ApiResourceId");
b.ToTable("ApiResourceProperties");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResourceScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ApiResourceId")
.HasColumnType("integer");
b.Property("Scope")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ApiResourceId");
b.ToTable("ApiResourceScopes");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResourceSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ApiResourceId")
.HasColumnType("integer");
b.Property("Created")
.HasColumnType("timestamp with time zone");
b.Property("Description")
.HasColumnType("text");
b.Property("Expiration")
.HasColumnType("timestamp with time zone");
b.Property("Type")
.HasColumnType("text");
b.Property("Value")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ApiResourceId");
b.ToTable("ApiResourceSecrets");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Description")
.HasColumnType("text");
b.Property("DisplayName")
.HasColumnType("text");
b.Property("Emphasize")
.HasColumnType("boolean");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("Name")
.HasColumnType("text");
b.Property("Required")
.HasColumnType("boolean");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("boolean");
b.HasKey("Id");
b.ToTable("ApiScopes");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiScopeClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ScopeId")
.HasColumnType("integer");
b.Property("Type")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ScopeId");
b.ToTable("ApiScopeClaims");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiScopeProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Key")
.HasColumnType("text");
b.Property("ScopeId")
.HasColumnType("integer");
b.Property("Value")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ScopeId");
b.ToTable("ApiScopeProperties");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.Client", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
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("AllowedIdentityTokenSigningAlgorithms")
.HasColumnType("text");
b.Property("AlwaysIncludeUserClaimsInIdToken")
.HasColumnType("boolean");
b.Property("AlwaysSendClientClaims")
.HasColumnType("boolean");
b.Property("AuthorizationCodeLifetime")
.HasColumnType("integer");
b.Property("BackChannelLogoutSessionRequired")
.HasColumnType("boolean");
b.Property("BackChannelLogoutUri")
.HasColumnType("text");
b.Property("ClientClaimsPrefix")
.HasColumnType("text");
b.Property("ClientId")
.HasColumnType("text");
b.Property("ClientName")
.HasColumnType("text");
b.Property("ClientUri")
.HasColumnType("text");
b.Property("ConsentLifetime")
.HasColumnType("integer");
b.Property("Created")
.HasColumnType("timestamp with time zone");
b.Property("Description")
.HasColumnType("text");
b.Property("DeviceCodeLifetime")
.HasColumnType("integer");
b.Property("EnableLocalLogin")
.HasColumnType("boolean");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("FrontChannelLogoutSessionRequired")
.HasColumnType("boolean");
b.Property("FrontChannelLogoutUri")
.HasColumnType("text");
b.Property("IdentityTokenLifetime")
.HasColumnType("integer");
b.Property("IncludeJwtId")
.HasColumnType("boolean");
b.Property("LastAccessed")
.HasColumnType("timestamp with time zone");
b.Property("LogoUri")
.HasColumnType("text");
b.Property("NonEditable")
.HasColumnType("boolean");
b.Property("PairWiseSubjectSalt")
.HasColumnType("text");
b.Property("ProtocolType")
.HasColumnType("text");
b.Property("RefreshTokenExpiration")
.HasColumnType("integer");
b.Property("RefreshTokenUsage")
.HasColumnType("integer");
b.Property("RequireClientSecret")
.HasColumnType("boolean");
b.Property("RequireConsent")
.HasColumnType("boolean");
b.Property("RequirePkce")
.HasColumnType("boolean");
b.Property("RequireRequestObject")
.HasColumnType("boolean");
b.Property("SlidingRefreshTokenLifetime")
.HasColumnType("integer");
b.Property("UpdateAccessTokenClaimsOnRefresh")
.HasColumnType("boolean");
b.Property("Updated")
.HasColumnType("timestamp with time zone");
b.Property("UserCodeType")
.HasColumnType("text");
b.Property("UserSsoLifetime")
.HasColumnType("integer");
b.HasKey("Id");
b.ToTable("Clients");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClientId")
.HasColumnType("integer");
b.Property("Type")
.HasColumnType("text");
b.Property("Value")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientClaim");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientCorsOrigin", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClientId")
.HasColumnType("integer");
b.Property("Origin")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientCorsOrigins");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientGrantType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClientId")
.HasColumnType("integer");
b.Property("GrantType")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientGrantType");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientIdPRestriction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClientId")
.HasColumnType("integer");
b.Property("Provider")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientIdPRestriction");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClientId")
.HasColumnType("integer");
b.Property("PostLogoutRedirectUri")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientPostLogoutRedirectUri");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClientId")
.HasColumnType("integer");
b.Property("Key")
.HasColumnType("text");
b.Property("Value")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientProperty");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClientId")
.HasColumnType("integer");
b.Property("RedirectUri")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientRedirectUri");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClientId")
.HasColumnType("integer");
b.Property("Scope")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientScope");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClientId")
.HasColumnType("integer");
b.Property("Created")
.HasColumnType("timestamp with time zone");
b.Property("Description")
.HasColumnType("text");
b.Property("Expiration")
.HasColumnType("timestamp with time zone");
b.Property("Type")
.HasColumnType("text");
b.Property("Value")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientSecret");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.IdentityResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Created")
.HasColumnType("timestamp with time zone");
b.Property("Description")
.HasColumnType("text");
b.Property("DisplayName")
.HasColumnType("text");
b.Property("Emphasize")
.HasColumnType("boolean");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("Name")
.HasColumnType("text");
b.Property("NonEditable")
.HasColumnType("boolean");
b.Property("Required")
.HasColumnType("boolean");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("boolean");
b.Property("Updated")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.ToTable("IdentityResources");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.IdentityResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("IdentityResourceId")
.HasColumnType("integer");
b.Property("Type")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("IdentityResourceId");
b.ToTable("IdentityResourceClaims");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.IdentityResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("IdentityResourceId")
.HasColumnType("integer");
b.Property("Key")
.HasColumnType("text");
b.Property("Value")
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("IdentityResourceId");
b.ToTable("IdentityResourceProperties");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property("Id")
.HasColumnType("text");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("text");
b.Property("Name")
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("NormalizedName")
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.HasKey("Id");
b.HasIndex("NormalizedName")
.IsUnique()
.HasDatabaseName("RoleNameIndex");
b.ToTable("AspNetRoles", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClaimType")
.HasColumnType("text");
b.Property("ClaimValue")
.HasColumnType("text");
b.Property("RoleId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ClaimType")
.HasColumnType("text");
b.Property("ClaimValue")
.HasColumnType("text");
b.Property("UserId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AspNetUserClaims", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
{
b.Property("LoginProvider")
.HasColumnType("text");
b.Property("ProviderKey")
.HasColumnType("text");
b.Property("ProviderDisplayName")
.HasColumnType("text");
b.Property("UserId")
.IsRequired()
.HasColumnType("text");
b.HasKey("LoginProvider", "ProviderKey");
b.HasIndex("UserId");
b.ToTable("AspNetUserLogins", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b =>
{
b.Property("UserId")
.HasColumnType("text");
b.Property("RoleId")
.HasColumnType("text");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
{
b.Property("UserId")
.HasColumnType("text");
b.Property("LoginProvider")
.HasColumnType("text");
b.Property("Name")
.HasColumnType("text");
b.Property("Value")
.HasColumnType("text");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AspNetUserTokens", (string)null);
});
modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b =>
{
b.Property("UserId")
.HasColumnType("text");
b.Property("Avatar")
.IsRequired()
.HasColumnType("text");
b.Property("BillingAddressId")
.HasColumnType("bigint");
b.Property("EMail")
.IsRequired()
.HasColumnType("text");
b.Property("Phone")
.IsRequired()
.HasColumnType("text");
b.Property("UserName")
.IsRequired()
.HasColumnType("text");
b.HasKey("UserId");
b.ToTable("ClientProviderInfo");
});
modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Target")
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("body")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("click_action")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("color")
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("icon")
.ValueGeneratedOnAdd()
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasDefaultValue("exclam");
b.Property("sound")
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("tag")
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("title")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("character varying(1024)");
b.HasKey("Id");
b.ToTable("Notification");
});
modelBuilder.Entity("Yavsc.Models.Access.Ban", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("DateCreated")
.HasColumnType("timestamp with time zone");
b.Property("DateModified")
.HasColumnType("timestamp with time zone");
b.Property("Reason")
.IsRequired()
.HasColumnType("text");
b.Property("TargetId")
.IsRequired()
.HasColumnType("text");
b.Property("UserCreated")
.IsRequired()
.HasColumnType("text");
b.Property("UserModified")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("TargetId");
b.ToTable("Ban");
});
modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("OwnerId")
.IsRequired()
.HasColumnType("text");
b.Property("UserId")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("OwnerId");
b.HasIndex("UserId");
b.ToTable("BlackListed");
});
modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b =>
{
b.Property("CircleId")
.HasColumnType("bigint");
b.Property("BlogPostId")
.HasColumnType("bigint");
b.Property("Comment")
.HasColumnType("boolean");
b.HasKey("CircleId", "BlogPostId");
b.HasIndex("BlogPostId");
b.ToTable("CircleAuthorizationToBlogPost");
});
modelBuilder.Entity("Yavsc.Models.AccountBalance", b =>
{
b.Property("UserId")
.HasColumnType("text");
b.Property("ContactCredits")
.HasColumnType("bigint");
b.Property("Credits")
.HasColumnType("numeric");
b.HasKey("UserId");
b.ToTable("BankStatus");
});
modelBuilder.Entity("Yavsc.Models.ApplicationUser", b =>
{
b.Property("Id")
.HasColumnType("text");
b.Property("AccessFailedCount")
.HasColumnType("integer");
b.Property("AllowMonthlyEmail")
.HasColumnType("boolean");
b.Property("Avatar")
.ValueGeneratedOnAdd()
.HasMaxLength(512)
.HasColumnType("character varying(512)")
.HasDefaultValue("/images/Users/icon_user.png");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("text");
b.Property("DedicatedGoogleCalendar")
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("DiskQuota")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasDefaultValue(524288000L);
b.Property("DiskUsage")
.HasColumnType("bigint");
b.Property("Email")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("EmailConfirmed")
.HasColumnType("boolean");
b.Property("FullName")
.HasMaxLength(512)
.HasColumnType("character varying(512)");
b.Property("LockoutEnabled")
.HasColumnType("boolean");
b.Property("LockoutEnd")
.HasColumnType("timestamp with time zone");
b.Property("MaxFileSize")
.HasColumnType("bigint");
b.Property("NormalizedEmail")
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("NormalizedUserName")
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.Property("PasswordHash")
.HasColumnType("text");
b.Property("PhoneNumber")
.HasColumnType("text");
b.Property("PhoneNumberConfirmed")
.HasColumnType("boolean");
b.Property("PostalAddressId")
.HasColumnType("bigint");
b.Property("SecurityStamp")
.HasColumnType("text");
b.Property("TwoFactorEnabled")
.HasColumnType("boolean");
b.Property("UserName")
.HasMaxLength(256)
.HasColumnType("character varying(256)");
b.HasKey("Id");
b.HasAlternateKey("Email");
b.HasIndex("NormalizedEmail")
.HasDatabaseName("EmailIndex");
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasDatabaseName("UserNameIndex");
b.HasIndex("PostalAddressId");
b.ToTable("AspNetUsers", (string)null);
});
modelBuilder.Entity("Yavsc.Models.Auth.Scope", b =>
{
b.Property("Id")
.HasColumnType("text");
b.Property("Description")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("character varying(1024)");
b.HasKey("Id");
b.ToTable("Scopes");
});
modelBuilder.Entity("Yavsc.Models.BalanceImpact", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("BalanceId")
.IsRequired()
.HasColumnType("text");
b.Property("ExecDate")
.HasColumnType("timestamp with time zone");
b.Property("Impact")
.HasColumnType("numeric");
b.Property("Reason")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("BalanceId");
b.ToTable("BalanceImpact");
});
modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property