* Seeking feedback: Build and run on .Net 6 preview 6 (#1734) * Updgrade build and hosting machines to .net6 latest * Target .net 6 * ILogger is ambiguous? * More ILogger ambiguity * Use preview 6... seeing errors in preview 7... * Of course the SDK version is different :) * downgrade the last nonworking component * Only restore the packages we need for the one off service stuck in .net 5 * Downgrade development docker files to use the preview 6 sdk * Updates `basket-api` to .NET 6 (#1742) * Use global usings * Use file-scoped namespaces * Updates docker images to preview 7 * Created a new migration plan * Included global usings for identity project * Updated docker file to preview version to 7 * Updated dockerfiles * Merged conent from Startup.cs to Program.cs * Removed Starup.cs * Removed unnecessary files * Revert "Removed unnecessary files" This reverts commit 536bddcd96b54673401cedbe802520dce12b3472. * Revert "Removed Starup.cs" This reverts commit 46175d7aa97475d88ec46bce39ed498c7037d924. * Revert "Merged conent from Startup.cs to Program.cs" This reverts commit 2766ea86dfef9220fe3f0c27a37a9a6c18153078. * Removed extra spaces * Updated basket-api project file * Update src/Services/Basket/Basket.API/Grpc/BasketService.cs Co-authored-by: David Pine <david.pine@microsoft.com> * Apply suggestions from code review Co-authored-by: David Pine <david.pine@microsoft.com> * Moved the fully qualified namespace on top * Updated relevant packages in basket.api project * Updated relevant packages in identity.api project Co-authored-by: David Pine <david.pine@microsoft.com> * Updates all the services to .NET 6.0 (#1770) * Created global using file for catalog.api * Moved individual usings statements to globalusing * Updated catalog.api project * Fixed local run bug for catalog.api * Included globalusing for payment.api * Refactored namespace statement for payment.api * Moved namespaces to ordering.domain project * Included globalusing for ordering.domain project * Included globalusings for ordering.infrastructure project * Refactored namespaces for ordering.infrastructure project * Updated relevant packages in ordering.infrastructure project * Included globalusings for ordering.signalrHub project * Moved all the namespace to globalusings * Updated packages in ordering.signalrHub csproj file * Refactored namespace statements in catalog.api project * Fixed namespace name in ordering.domain * Included global usings for ordering.api project * Moved all usings to globalusing file * Updated ordering.api csproj project * Fixed bug in statup.cs * Updated ordering.unittests.csproj file * Included globalusings in webhooks.api project * Moved using statements to globalusing file in webhooks.api * Included globalusing for web.bff.shoppping aggregator project * Moved namespaces to globalusing shopping aggregator * Included globalusing mobile.bff.shoppping project * Moved namespaces to globalusing file * Included globalusing for eventbus project * Moved namespaces to global usings for eventbus * Included globalusing for EventBusRabbitMQ project * Moved using statements to EventBusRabbitMQ project * Included global using in EventBusServiceBus project * Moved using statements to globalusing for EventBusServiceBus * Included globalusing file for IntegrationEventLogEF project * Move using statements to globalusing file * Updated packages of IntegrationEventLogEF project * Included globalusing to Devspaces.Support project * Moved using statements to globalusing Devspaces * Updated dependent packages for Devspaces.Support.csproj * Fixed bug in Basket API * Fixed bug in catalog.api * Fixed bug Identity.API * Included globalusing to Basket.UnitTest project * Moved namespaces to Basket.UnitTest project * Updated packages of Basket.UnitTest csproj * Included globalusing for Basket.FunctionalTests project * Included file-scoped namespaces Basket.FunctionalTests * Updated packages of Basket.FunctionalTests.csproj file * Updated catalog unit test project to Net 6.0 * Included global usings for Catalog.FunctionalTests * Included file-scope namespace catalog.functionaltests * Updated packages of catalog.functionaltest csproj * Included MigrateDbContext method in HostExtensions * Included globalusing for ordering.UnitTests project * Included file-scope statement for Ordering.UnitTest project * Included globalusing for Ordering.FunctionalTests * Included file-scope namespace statement for using * Updated packages in Ordering.FunctionalTests.csproj * Apply suggestions from code review Co-authored-by: David Pine <david.pine@microsoft.com> * Apply suggestions from code review Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Services/Ordering/Ordering.API/Startup.cs Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Services/Ordering/Ordering.Domain/Events/OrderStatusChangedToPaidDomainEvent.cs Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Services/Ordering/Ordering.SignalrHub/IntegrationEvents/EventHandling/OrderStatusChangedToSubmittedIntegrationEventHandler.cs Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Services/Ordering/Ordering.SignalrHub/IntegrationEvents/Events/OrderStatusChangedToAwaitingValidationIntegrationEvent.cs Co-authored-by: David Pine <david.pine@microsoft.com> * Apply suggestions from code review Co-authored-by: David Pine <david.pine@microsoft.com> * Apply suggestions from code review Co-authored-by: David Pine <david.pine@microsoft.com> Co-authored-by: David Pine <david.pine@microsoft.com> * Updates WebMVC to .NET 6.0 (#1773) * Included globalusing WebMVC * Included file scope namespaces for all files * Updated dockerfile * Updated packages to WebMVC * Fixes few bugs in Net 6.0 service migration (#1774) * Created global using file for catalog.api * Moved individual usings statements to globalusing * Updated catalog.api project * Fixed local run bug for catalog.api * Included globalusing for payment.api * Refactored namespace statement for payment.api * Moved namespaces to ordering.domain project * Included globalusing for ordering.domain project * Included globalusings for ordering.infrastructure project * Refactored namespaces for ordering.infrastructure project * Updated relevant packages in ordering.infrastructure project * Included globalusings for ordering.signalrHub project * Moved all the namespace to globalusings * Updated packages in ordering.signalrHub csproj file * Refactored namespace statements in catalog.api project * Fixed namespace name in ordering.domain * Included global usings for ordering.api project * Moved all usings to globalusing file * Updated ordering.api csproj project * Fixed bug in statup.cs * Updated ordering.unittests.csproj file * Included globalusings in webhooks.api project * Moved using statements to globalusing file in webhooks.api * Included globalusing for web.bff.shoppping aggregator project * Moved namespaces to globalusing shopping aggregator * Included globalusing mobile.bff.shoppping project * Moved namespaces to globalusing file * Included globalusing for eventbus project * Moved namespaces to global usings for eventbus * Included globalusing for EventBusRabbitMQ project * Moved using statements to EventBusRabbitMQ project * Included global using in EventBusServiceBus project * Moved using statements to globalusing for EventBusServiceBus * Included globalusing file for IntegrationEventLogEF project * Move using statements to globalusing file * Updated packages of IntegrationEventLogEF project * Included globalusing to Devspaces.Support project * Moved using statements to globalusing Devspaces * Updated dependent packages for Devspaces.Support.csproj * Fixed bug in Basket API * Fixed bug in catalog.api * Fixed bug Identity.API * Included globalusing to Basket.UnitTest project * Moved namespaces to Basket.UnitTest project * Updated packages of Basket.UnitTest csproj * Included globalusing for Basket.FunctionalTests project * Included file-scoped namespaces Basket.FunctionalTests * Updated packages of Basket.FunctionalTests.csproj file * Updated catalog unit test project to Net 6.0 * Included global usings for Catalog.FunctionalTests * Included file-scope namespace catalog.functionaltests * Updated packages of catalog.functionaltest csproj * Included MigrateDbContext method in HostExtensions * Included globalusing for ordering.UnitTests project * Included file-scope statement for Ordering.UnitTest project * Included globalusing for Ordering.FunctionalTests * Included file-scope namespace statement for using * Updated packages in Ordering.FunctionalTests.csproj * Apply suggestions from code review Co-authored-by: David Pine <david.pine@microsoft.com> * Apply suggestions from code review Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Services/Ordering/Ordering.API/Startup.cs Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Services/Ordering/Ordering.Domain/Events/OrderStatusChangedToPaidDomainEvent.cs Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Services/Ordering/Ordering.SignalrHub/IntegrationEvents/EventHandling/OrderStatusChangedToSubmittedIntegrationEventHandler.cs Co-authored-by: David Pine <david.pine@microsoft.com> * Update src/Services/Ordering/Ordering.SignalrHub/IntegrationEvents/Events/OrderStatusChangedToAwaitingValidationIntegrationEvent.cs Co-authored-by: David Pine <david.pine@microsoft.com> * Apply suggestions from code review Co-authored-by: David Pine <david.pine@microsoft.com> * Apply suggestions from code review Co-authored-by: David Pine <david.pine@microsoft.com> * Fixed bugs in Mobile.BFF.Shopping project * Fixed bugs in Web.Bff.Shopping aggregator project * Fixed bugs in EventBusServiceBus project * Fixed bug in Mobile.Bff.Shopping project Co-authored-by: David Pine <david.pine@microsoft.com> * Updates webhook client project to .NET 6.0 (#1777) * Included globalusing file for webhookclient * Included file scope namespaces for Webhookclient * Updated packages in WebHookClient project * Updates webspa project to Net 6.0 (#1778) * Included globalusing in webspa project * Included file scoped namespace for webspa project * Updated packages in WebSPA project * Updates the Application.FunctionalTests project to .NET 6.0 (#1781) * Included globalusing in Application.FunctionalTests project * Included file scoped namespace * Renamed Azure.Messaging.ServiceBus namespace * Updates .NET version of Dockerfile to 6.0 (#1785) * Updatated package versions to RC2 * Updated package versions to RC2 * Updated Dockerfiles to .NET 6 RC2 * Changed docker file tag to 6.0 * Updated Program class * Updated globalusing file * Removed preview tag reference from Dockerfile.develop file * Updated dotnet version to .NET 6.0 * Updated all packages to the .NET 6.0 * Removed RC tag from dockerfile * Fixed bundleconfig json * Updated readme files * Fixed ingress yaml indentation * Included globalusing for WebStatus project * Updated WebStatus project to .NET 6.0 * Included scoped namespace * Updated Dockerfile of WebStatus to .NET 6.0 Co-authored-by: Josh Coleman <83677148+JcolemanNR@users.noreply.github.com> Co-authored-by: David Pine <david.pine@microsoft.com>
910 lines
34 KiB
C#
910 lines
34 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using IdentityServer4.EntityFramework.DbContexts;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
namespace Identity.API.Migrations.ConfigurationDb
|
|
{
|
|
[DbContext(typeof(ConfigurationDbContext))]
|
|
partial class ConfigurationDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
|
.HasAnnotation("ProductVersion", "6.0.0")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResource", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastAccessed")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<bool>("NonEditable")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("Updated")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ApiResources", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ApiResourceId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ApiResourceId");
|
|
|
|
b.ToTable("ApiClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ApiResourceId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ApiResourceId");
|
|
|
|
b.ToTable("ApiProperties", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ApiResourceId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<bool>("Emphasize")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<bool>("Required")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("ShowInDiscoveryDocument")
|
|
.HasColumnType("bit");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ApiResourceId");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ApiScopes", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ApiScopeId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ApiScopeId");
|
|
|
|
b.ToTable("ApiScopeClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiSecret", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ApiResourceId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<DateTime?>("Expiration")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(4000)
|
|
.HasColumnType("nvarchar(4000)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ApiResourceId");
|
|
|
|
b.ToTable("ApiSecrets", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.Client", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("AbsoluteRefreshTokenLifetime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("AccessTokenLifetime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("AccessTokenType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("AllowAccessTokensViaBrowser")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("AllowOfflineAccess")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("AllowPlainTextPkce")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("AllowRememberConsent")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("AlwaysIncludeUserClaimsInIdToken")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("AlwaysSendClientClaims")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<int>("AuthorizationCodeLifetime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("BackChannelLogoutSessionRequired")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("BackChannelLogoutUri")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.Property<string>("ClientClaimsPrefix")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<string>("ClientId")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<string>("ClientName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<string>("ClientUri")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.Property<int?>("ConsentLifetime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<int>("DeviceCodeLifetime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("EnableLocalLogin")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("FrontChannelLogoutSessionRequired")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("FrontChannelLogoutUri")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.Property<int>("IdentityTokenLifetime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IncludeJwtId")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("LastAccessed")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("LogoUri")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.Property<bool>("NonEditable")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("PairWiseSubjectSalt")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<string>("ProtocolType")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<int>("RefreshTokenExpiration")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RefreshTokenUsage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("RequireClientSecret")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("RequireConsent")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("RequirePkce")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<int>("SlidingRefreshTokenLifetime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("Updated")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("UserCodeType")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<int?>("UserSsoLifetime")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Clients", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ClientId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
b.ToTable("ClientClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ClientId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Origin")
|
|
.IsRequired()
|
|
.HasMaxLength(150)
|
|
.HasColumnType("nvarchar(150)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
b.ToTable("ClientCorsOrigins", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ClientId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("GrantType")
|
|
.IsRequired()
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
b.ToTable("ClientGrantTypes", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ClientId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Provider")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
b.ToTable("ClientIdPRestrictions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ClientId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("PostLogoutRedirectUri")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
b.ToTable("ClientPostLogoutRedirectUris", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ClientId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
b.ToTable("ClientProperties", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ClientId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("RedirectUri")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
b.ToTable("ClientRedirectUris", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ClientId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Scope")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
b.ToTable("ClientScopes", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("ClientId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.Property<DateTime?>("Expiration")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(4000)
|
|
.HasColumnType("nvarchar(4000)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
b.ToTable("ClientSecrets", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityClaim", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("IdentityResourceId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("IdentityResourceId");
|
|
|
|
b.ToTable("IdentityClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResource", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<bool>("Emphasize")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<bool>("NonEditable")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("Required")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("ShowInDiscoveryDocument")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("Updated")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("IdentityResources", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
b.Property<int>("IdentityResourceId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("nvarchar(2000)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("IdentityResourceId");
|
|
|
|
b.ToTable("IdentityProperties", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
|
|
.WithMany("UserClaims")
|
|
.HasForeignKey("ApiResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ApiResource");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
|
|
.WithMany("Properties")
|
|
.HasForeignKey("ApiResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ApiResource");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
|
|
.WithMany("Scopes")
|
|
.HasForeignKey("ApiResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ApiResource");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "ApiScope")
|
|
.WithMany("UserClaims")
|
|
.HasForeignKey("ApiScopeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ApiScope");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiSecret", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
|
|
.WithMany("Secrets")
|
|
.HasForeignKey("ApiResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ApiResource");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
|
|
.WithMany("Claims")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Client");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
|
|
.WithMany("AllowedCorsOrigins")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Client");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
|
|
.WithMany("AllowedGrantTypes")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Client");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
|
|
.WithMany("IdentityProviderRestrictions")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Client");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
|
|
.WithMany("PostLogoutRedirectUris")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Client");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
|
|
.WithMany("Properties")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Client");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
|
|
.WithMany("RedirectUris")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Client");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
|
|
.WithMany("AllowedScopes")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Client");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
|
|
.WithMany("ClientSecrets")
|
|
.HasForeignKey("ClientId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Client");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityClaim", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
|
|
.WithMany("UserClaims")
|
|
.HasForeignKey("IdentityResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("IdentityResource");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
|
|
{
|
|
b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
|
|
.WithMany("Properties")
|
|
.HasForeignKey("IdentityResourceId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("IdentityResource");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResource", b =>
|
|
{
|
|
b.Navigation("Properties");
|
|
|
|
b.Navigation("Scopes");
|
|
|
|
b.Navigation("Secrets");
|
|
|
|
b.Navigation("UserClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
|
|
{
|
|
b.Navigation("UserClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("IdentityServer4.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("IdentityServer4.EntityFramework.Entities.IdentityResource", b =>
|
|
{
|
|
b.Navigation("Properties");
|
|
|
|
b.Navigation("UserClaims");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|