//
using System;
using IdentityServer8.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Yavsc.Migrations.ConfigurationDb
{
[DbContext(typeof(ConfigurationDbContext))]
[Migration("20250824140319_init")]
partial class init
{
///
protected override void BuildTargetModel(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")
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property("Created")
.HasColumnType("timestamp with time zone");
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("LastAccessed")
.HasColumnType("timestamp with time zone");
b.Property("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("NonEditable")
.HasColumnType("boolean");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("boolean");
b.Property("Updated")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.ToTable("ApiResources", (string)null);
});
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")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.HasKey("Id");
b.HasIndex("ApiResourceId");
b.ToTable("ApiResourceClaims", (string)null);
});
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")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("Value")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.HasKey("Id");
b.HasIndex("ApiResourceId");
b.ToTable("ApiResourceProperties", (string)null);
});
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")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.HasKey("Id");
b.HasIndex("ApiResourceId");
b.ToTable("ApiResourceScopes", (string)null);
});
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")
.HasMaxLength(1000)
.HasColumnType("character varying(1000)");
b.Property("Expiration")
.HasColumnType("timestamp with time zone");
b.Property("Type")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("Value")
.IsRequired()
.HasMaxLength(4000)
.HasColumnType("character varying(4000)");
b.HasKey("Id");
b.HasIndex("ApiResourceId");
b.ToTable("ApiResourceSecrets", (string)null);
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
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("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("Required")
.HasColumnType("boolean");
b.Property("ShowInDiscoveryDocument")
.HasColumnType("boolean");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.ToTable("ApiScopes", (string)null);
});
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")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.HasKey("Id");
b.HasIndex("ScopeId");
b.ToTable("ApiScopeClaims", (string)null);
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiScopeProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Key")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("ScopeId")
.HasColumnType("integer");
b.Property("Value")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.HasKey("Id");
b.HasIndex("ScopeId");
b.ToTable("ApiScopeProperties", (string)null);
});
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")
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property("AlwaysIncludeUserClaimsInIdToken")
.HasColumnType("boolean");
b.Property("AlwaysSendClientClaims")
.HasColumnType("boolean");
b.Property("AuthorizationCodeLifetime")
.HasColumnType("integer");
b.Property("BackChannelLogoutSessionRequired")
.HasColumnType("boolean");
b.Property("BackChannelLogoutUri")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.Property("ClientClaimsPrefix")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("ClientId")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("ClientName")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("ClientUri")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.Property("ConsentLifetime")
.HasColumnType("integer");
b.Property("Created")
.HasColumnType("timestamp with time zone");
b.Property("Description")
.HasMaxLength(1000)
.HasColumnType("character varying(1000)");
b.Property("DeviceCodeLifetime")
.HasColumnType("integer");
b.Property("EnableLocalLogin")
.HasColumnType("boolean");
b.Property("Enabled")
.HasColumnType("boolean");
b.Property("FrontChannelLogoutSessionRequired")
.HasColumnType("boolean");
b.Property("FrontChannelLogoutUri")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.Property("IdentityTokenLifetime")
.HasColumnType("integer");
b.Property("IncludeJwtId")
.HasColumnType("boolean");
b.Property("LastAccessed")
.HasColumnType("timestamp with time zone");
b.Property("LogoUri")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.Property("NonEditable")
.HasColumnType("boolean");
b.Property("PairWiseSubjectSalt")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("ProtocolType")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
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")
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property("UserSsoLifetime")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ClientId")
.IsUnique();
b.ToTable("Clients", (string)null);
});
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")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("Value")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientClaims", (string)null);
});
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")
.IsRequired()
.HasMaxLength(150)
.HasColumnType("character varying(150)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientCorsOrigins", (string)null);
});
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")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientGrantTypes", (string)null);
});
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")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientIdPRestrictions", (string)null);
});
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")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientPostLogoutRedirectUris", (string)null);
});
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")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("Value")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientProperties", (string)null);
});
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")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientRedirectUris", (string)null);
});
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")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientScopes", (string)null);
});
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")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.Property("Expiration")
.HasColumnType("timestamp with time zone");
b.Property("Type")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("Value")
.IsRequired()
.HasMaxLength(4000)
.HasColumnType("character varying(4000)");
b.HasKey("Id");
b.HasIndex("ClientId");
b.ToTable("ClientSecrets", (string)null);
});
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")
.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("Name")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
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.HasIndex("Name")
.IsUnique();
b.ToTable("IdentityResources", (string)null);
});
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")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.HasKey("Id");
b.HasIndex("IdentityResourceId");
b.ToTable("IdentityResourceClaims", (string)null);
});
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")
.IsRequired()
.HasMaxLength(250)
.HasColumnType("character varying(250)");
b.Property("Value")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
b.HasKey("Id");
b.HasIndex("IdentityResourceId");
b.ToTable("IdentityResourceProperties", (string)null);
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResourceClaim", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("UserClaims")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("ApiResource");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResourceProperty", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Properties")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("ApiResource");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResourceScope", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Scopes")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("ApiResource");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResourceSecret", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Secrets")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("ApiResource");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiScopeClaim", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("UserClaims")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Scope");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiScopeProperty", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("Properties")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Scope");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientClaim", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.Client", "Client")
.WithMany("Claims")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Client");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientCorsOrigin", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedCorsOrigins")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Client");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientGrantType", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedGrantTypes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Client");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientIdPRestriction", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.Client", "Client")
.WithMany("IdentityProviderRestrictions")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Client");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.Client", "Client")
.WithMany("PostLogoutRedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Client");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientProperty", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.Client", "Client")
.WithMany("Properties")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Client");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientRedirectUri", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.Client", "Client")
.WithMany("RedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Client");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientScope", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedScopes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Client");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ClientSecret", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.Client", "Client")
.WithMany("ClientSecrets")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Client");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.IdentityResourceClaim", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("UserClaims")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("IdentityResource");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.IdentityResourceProperty", b =>
{
b.HasOne("IdentityServer8.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("Properties")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("IdentityResource");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiResource", b =>
{
b.Navigation("Properties");
b.Navigation("Scopes");
b.Navigation("Secrets");
b.Navigation("UserClaims");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.ApiScope", b =>
{
b.Navigation("Properties");
b.Navigation("UserClaims");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.Client", b =>
{
b.Navigation("AllowedCorsOrigins");
b.Navigation("AllowedGrantTypes");
b.Navigation("AllowedScopes");
b.Navigation("Claims");
b.Navigation("ClientSecrets");
b.Navigation("IdentityProviderRestrictions");
b.Navigation("PostLogoutRedirectUris");
b.Navigation("Properties");
b.Navigation("RedirectUris");
});
modelBuilder.Entity("IdentityServer8.EntityFramework.Entities.IdentityResource", b =>
{
b.Navigation("Properties");
b.Navigation("UserClaims");
});
#pragma warning restore 612, 618
}
}
}