Browse Source

Use local reference for `Volo.Abp.EntityFrameworkCore.PostgreSql` to prevent version mismatch

pull/65/head
Engincan VESKE 5 years ago
parent
commit
8f533bd678
  1. 5
      src/EventHub.EntityFrameworkCore/EntityFrameworkCore/EventHubDbContext.cs
  2. 1
      src/EventHub.EntityFrameworkCore/EntityFrameworkCore/EventHubDbContextModelCreatingExtensions.cs
  3. 4
      src/EventHub.EntityFrameworkCore/EventHub.EntityFrameworkCore.csproj
  4. 2634
      src/EventHub.EntityFrameworkCore/Migrations/20211008103457_Added_IsActive_To_IdentityUser.Designer.cs
  5. 773
      src/EventHub.EntityFrameworkCore/Migrations/20211008103457_Added_IsActive_To_IdentityUser.cs
  6. 200
      src/EventHub.EntityFrameworkCore/Migrations/EventHubDbContextModelSnapshot.cs
  7. 2
      src/EventHub.IdentityServer/EventHub.IdentityServer.csproj

5
src/EventHub.EntityFrameworkCore/EntityFrameworkCore/EventHubDbContext.cs

@ -4,6 +4,7 @@ using EventHub.Events.Registrations;
using EventHub.Organizations;
using EventHub.Organizations.Memberships;
using Microsoft.EntityFrameworkCore;
using System;
using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.BackgroundJobs.EntityFrameworkCore;
using Volo.Abp.BlobStoring.Database.EntityFrameworkCore;
@ -60,6 +61,10 @@ namespace EventHub.EntityFrameworkCore
{
base.OnModelCreating(builder);
//allows to use DateTime with timezone (by default)
//See: https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
builder.ConfigurePermissionManagement();
builder.ConfigureSettingManagement();
builder.ConfigureBackgroundJobs();

1
src/EventHub.EntityFrameworkCore/EntityFrameworkCore/EventHubDbContextModelCreatingExtensions.cs

@ -4,6 +4,7 @@ using EventHub.Events.Registrations;
using EventHub.Organizations;
using EventHub.Organizations.Memberships;
using Microsoft.EntityFrameworkCore;
using System;
using Volo.Abp;
using Volo.Abp.EntityFrameworkCore.Modeling;
using Volo.Abp.Identity;

4
src/EventHub.EntityFrameworkCore/EventHub.EntityFrameworkCore.csproj

@ -8,13 +8,13 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0-rc.*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.BlobStoring.Database.EntityFrameworkCore" Version="5.0.0-beta.1" />
<ProjectReference Include="..\EventHub.Domain\EventHub.Domain.csproj" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.PostgreSql" Version="5.0.0-beta.1" />
<ProjectReference Include="..\..\..\abp\framework\src\Volo.Abp.EntityFrameworkCore.PostgreSql\Volo.Abp.EntityFrameworkCore.PostgreSql.csproj" />
<PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="5.0.0-beta.1" />
<PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="5.0.0-beta.1" />
<PackageReference Include="Volo.Abp.Identity.EntityFrameworkCore" Version="5.0.0-beta.1" />

2634
src/EventHub.EntityFrameworkCore/Migrations/20211008103457_Added_IsActive_To_IdentityUser.Designer.cs

File diff suppressed because it is too large

773
src/EventHub.EntityFrameworkCore/Migrations/20211008103457_Added_IsActive_To_IdentityUser.cs

@ -0,0 +1,773 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EventHub.Migrations
{
public partial class Added_IsActive_To_IdentityUser : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "Expiration",
table: "IdentityServerPersistedGrants",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerPersistedGrants",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "ConsumedTime",
table: "IdentityServerPersistedGrants",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "IdentityServerIdentityResources",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "IdentityServerIdentityResources",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerIdentityResources",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "Expiration",
table: "IdentityServerDeviceFlowCodes",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerDeviceFlowCodes",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "Expiration",
table: "IdentityServerClientSecrets",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "IdentityServerClients",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "IdentityServerClients",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerClients",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "IdentityServerApiScopes",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "IdentityServerApiScopes",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerApiScopes",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "Expiration",
table: "IdentityServerApiResourceSecrets",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "IdentityServerApiResources",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "IdentityServerApiResources",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerApiResources",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "EhOrganizations",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "EhOrganizations",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "EhOrganizations",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "EhOrganizationMemberships",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "StartTime",
table: "EhEvents",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "EhEvents",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "EndTime",
table: "EhEvents",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "EhEvents",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "EhEvents",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "EhEventRegistrations",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "AbpUsers",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "AbpUsers",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpUsers",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AddColumn<bool>(
name: "IsActive",
table: "AbpUsers",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpUserOrganizationUnits",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpSecurityLogs",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "AbpOrganizationUnits",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "AbpOrganizationUnits",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpOrganizationUnits",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpOrganizationUnitRoles",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "ChangeTime",
table: "AbpEntityChanges",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "NextTryTime",
table: "AbpBackgroundJobs",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastTryTime",
table: "AbpBackgroundJobs",
type: "timestamp with time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpBackgroundJobs",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "ExecutionTime",
table: "AbpAuditLogs",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "ExecutionTime",
table: "AbpAuditLogActions",
type: "timestamp with time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp without time zone");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsActive",
table: "AbpUsers");
migrationBuilder.AlterColumn<DateTime>(
name: "Expiration",
table: "IdentityServerPersistedGrants",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerPersistedGrants",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "ConsumedTime",
table: "IdentityServerPersistedGrants",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "IdentityServerIdentityResources",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "IdentityServerIdentityResources",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerIdentityResources",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "Expiration",
table: "IdentityServerDeviceFlowCodes",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerDeviceFlowCodes",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "Expiration",
table: "IdentityServerClientSecrets",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "IdentityServerClients",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "IdentityServerClients",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerClients",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "IdentityServerApiScopes",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "IdentityServerApiScopes",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerApiScopes",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "Expiration",
table: "IdentityServerApiResourceSecrets",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "IdentityServerApiResources",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "IdentityServerApiResources",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "IdentityServerApiResources",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "EhOrganizations",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "EhOrganizations",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "EhOrganizations",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "EhOrganizationMemberships",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "StartTime",
table: "EhEvents",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "EhEvents",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "EndTime",
table: "EhEvents",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "EhEvents",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "EhEvents",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "EhEventRegistrations",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "AbpUsers",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "AbpUsers",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpUsers",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpUserOrganizationUnits",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpSecurityLogs",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastModificationTime",
table: "AbpOrganizationUnits",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "DeletionTime",
table: "AbpOrganizationUnits",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpOrganizationUnits",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpOrganizationUnitRoles",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "ChangeTime",
table: "AbpEntityChanges",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "NextTryTime",
table: "AbpBackgroundJobs",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "LastTryTime",
table: "AbpBackgroundJobs",
type: "timestamp without time zone",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "AbpBackgroundJobs",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "ExecutionTime",
table: "AbpAuditLogs",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
migrationBuilder.AlterColumn<DateTime>(
name: "ExecutionTime",
table: "AbpAuditLogActions",
type: "timestamp without time zone",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "timestamp with time zone");
}
}
}

200
src/EventHub.EntityFrameworkCore/Migrations/EventHubDbContextModelSnapshot.cs

@ -7,6 +7,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace EventHub.Migrations
{
[DbContext(typeof(EventHubDbContext))]
@ -17,9 +19,10 @@ namespace EventHub.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql)
.HasAnnotation("Relational:MaxIdentifierLength", 63)
.HasAnnotation("ProductVersion", "5.0.8")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
.HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("EventHub.Countries.Country", b =>
{
@ -35,7 +38,7 @@ namespace EventHub.Migrations
b.HasIndex("Name");
b.ToTable("EhCountries");
b.ToTable("EhCountries", (string)null);
});
modelBuilder.Entity("EventHub.Events.Event", b =>
@ -63,7 +66,7 @@ namespace EventHub.Migrations
.HasColumnType("text");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -75,7 +78,7 @@ namespace EventHub.Migrations
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
@ -84,7 +87,7 @@ namespace EventHub.Migrations
.HasColumnType("character varying(2000)");
b.Property<DateTime>("EndTime")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
@ -115,7 +118,7 @@ namespace EventHub.Migrations
.HasColumnType("character varying(16)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
@ -130,7 +133,7 @@ namespace EventHub.Migrations
.HasColumnType("uuid");
b.Property<DateTime>("StartTime")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<int>("TimingChangeCount")
.HasColumnType("integer");
@ -164,7 +167,7 @@ namespace EventHub.Migrations
b.HasIndex("OrganizationId", "StartTime");
b.ToTable("EhEvents");
b.ToTable("EhEvents", (string)null);
});
modelBuilder.Entity("EventHub.Events.Registrations.EventRegistration", b =>
@ -179,7 +182,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -202,7 +205,7 @@ namespace EventHub.Migrations
b.HasIndex("EventId", "UserId");
b.ToTable("EhEventRegistrations");
b.ToTable("EhEventRegistrations", (string)null);
});
modelBuilder.Entity("EventHub.Organizations.Memberships.OrganizationMembership", b =>
@ -217,7 +220,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -240,7 +243,7 @@ namespace EventHub.Migrations
b.HasIndex("OrganizationId", "UserId");
b.ToTable("EhOrganizationMemberships");
b.ToTable("EhOrganizationMemberships", (string)null);
});
modelBuilder.Entity("EventHub.Organizations.Organization", b =>
@ -255,7 +258,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -267,7 +270,7 @@ namespace EventHub.Migrations
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
@ -300,7 +303,7 @@ namespace EventHub.Migrations
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
@ -335,7 +338,7 @@ namespace EventHub.Migrations
b.HasIndex("OwnerUserId");
b.ToTable("EhOrganizations");
b.ToTable("EhOrganizations", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
@ -393,7 +396,7 @@ namespace EventHub.Migrations
.HasColumnName("ExecutionDuration");
b.Property<DateTime>("ExecutionTime")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
@ -443,7 +446,7 @@ namespace EventHub.Migrations
b.HasIndex("TenantId", "UserId", "ExecutionTime");
b.ToTable("AbpAuditLogs");
b.ToTable("AbpAuditLogs", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
@ -461,7 +464,7 @@ namespace EventHub.Migrations
.HasColumnName("ExecutionDuration");
b.Property<DateTime>("ExecutionTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("ExecutionTime");
b.Property<string>("ExtraProperties")
@ -493,7 +496,7 @@ namespace EventHub.Migrations
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
b.ToTable("AbpAuditLogActions");
b.ToTable("AbpAuditLogActions", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
@ -507,7 +510,7 @@ namespace EventHub.Migrations
.HasColumnName("AuditLogId");
b.Property<DateTime>("ChangeTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("ChangeTime");
b.Property<byte>("ChangeType")
@ -543,7 +546,7 @@ namespace EventHub.Migrations
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
b.ToTable("AbpEntityChanges");
b.ToTable("AbpEntityChanges", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
@ -585,7 +588,7 @@ namespace EventHub.Migrations
b.HasIndex("EntityChangeId");
b.ToTable("AbpEntityPropertyChanges");
b.ToTable("AbpEntityPropertyChanges", (string)null);
});
modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b =>
@ -601,7 +604,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<string>("ExtraProperties")
@ -624,10 +627,10 @@ namespace EventHub.Migrations
.HasColumnType("character varying(128)");
b.Property<DateTime?>("LastTryTime")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<DateTime>("NextTryTime")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<byte>("Priority")
.ValueGeneratedOnAdd()
@ -643,7 +646,7 @@ namespace EventHub.Migrations
b.HasIndex("IsAbandoned", "NextTryTime");
b.ToTable("AbpBackgroundJobs");
b.ToTable("AbpBackgroundJobs", (string)null);
});
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
@ -684,7 +687,7 @@ namespace EventHub.Migrations
b.HasIndex("TenantId", "ContainerId", "Name");
b.ToTable("AbpBlobs");
b.ToTable("AbpBlobs", (string)null);
});
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b =>
@ -716,7 +719,7 @@ namespace EventHub.Migrations
b.HasIndex("TenantId", "Name");
b.ToTable("AbpBlobContainers");
b.ToTable("AbpBlobContainers", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
@ -762,7 +765,7 @@ namespace EventHub.Migrations
b.HasKey("Id");
b.ToTable("AbpClaimTypes");
b.ToTable("AbpClaimTypes", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b =>
@ -787,7 +790,7 @@ namespace EventHub.Migrations
b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId")
.IsUnique();
b.ToTable("AbpLinkUsers");
b.ToTable("AbpLinkUsers", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
@ -835,7 +838,7 @@ namespace EventHub.Migrations
b.HasIndex("NormalizedName");
b.ToTable("AbpRoles");
b.ToTable("AbpRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
@ -863,7 +866,7 @@ namespace EventHub.Migrations
b.HasIndex("RoleId");
b.ToTable("AbpRoleClaims");
b.ToTable("AbpRoleClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
@ -902,7 +905,7 @@ namespace EventHub.Migrations
.HasColumnType("character varying(64)");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
@ -937,7 +940,7 @@ namespace EventHub.Migrations
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpSecurityLogs");
b.ToTable("AbpSecurityLogs", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
@ -958,7 +961,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -970,7 +973,7 @@ namespace EventHub.Migrations
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("DeletionTime");
b.Property<string>("Email")
@ -989,6 +992,9 @@ namespace EventHub.Migrations
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsActive")
.HasColumnType("boolean");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
@ -1002,7 +1008,7 @@ namespace EventHub.Migrations
.HasColumnName("IsExternal");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
@ -1088,7 +1094,7 @@ namespace EventHub.Migrations
b.HasIndex("UserName");
b.ToTable("AbpUsers");
b.ToTable("AbpUsers", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
@ -1116,7 +1122,7 @@ namespace EventHub.Migrations
b.HasIndex("UserId");
b.ToTable("AbpUserClaims");
b.ToTable("AbpUserClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
@ -1145,7 +1151,7 @@ namespace EventHub.Migrations
b.HasIndex("LoginProvider", "ProviderKey");
b.ToTable("AbpUserLogins");
b.ToTable("AbpUserLogins", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
@ -1157,7 +1163,7 @@ namespace EventHub.Migrations
.HasColumnType("uuid");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -1172,7 +1178,7 @@ namespace EventHub.Migrations
b.HasIndex("UserId", "OrganizationUnitId");
b.ToTable("AbpUserOrganizationUnits");
b.ToTable("AbpUserOrganizationUnits", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
@ -1191,7 +1197,7 @@ namespace EventHub.Migrations
b.HasIndex("RoleId", "UserId");
b.ToTable("AbpUserRoles");
b.ToTable("AbpUserRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
@ -1216,7 +1222,7 @@ namespace EventHub.Migrations
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AbpUserTokens");
b.ToTable("AbpUserTokens", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
@ -1237,7 +1243,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -1249,7 +1255,7 @@ namespace EventHub.Migrations
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("DeletionTime");
b.Property<string>("DisplayName")
@ -1269,7 +1275,7 @@ namespace EventHub.Migrations
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
@ -1289,7 +1295,7 @@ namespace EventHub.Migrations
b.HasIndex("ParentId");
b.ToTable("AbpOrganizationUnits");
b.ToTable("AbpOrganizationUnits", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
@ -1301,7 +1307,7 @@ namespace EventHub.Migrations
.HasColumnType("uuid");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -1316,7 +1322,7 @@ namespace EventHub.Migrations
b.HasIndex("RoleId", "OrganizationUnitId");
b.ToTable("AbpOrganizationUnitRoles");
b.ToTable("AbpOrganizationUnitRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
@ -1336,7 +1342,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -1348,7 +1354,7 @@ namespace EventHub.Migrations
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
@ -1373,7 +1379,7 @@ namespace EventHub.Migrations
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
@ -1390,7 +1396,7 @@ namespace EventHub.Migrations
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
b.ToTable("IdentityServerApiResources", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
@ -1404,7 +1410,7 @@ namespace EventHub.Migrations
b.HasKey("ApiResourceId", "Type");
b.ToTable("IdentityServerApiResourceClaims");
b.ToTable("IdentityServerApiResourceClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b =>
@ -1422,7 +1428,7 @@ namespace EventHub.Migrations
b.HasKey("ApiResourceId", "Key", "Value");
b.ToTable("IdentityServerApiResourceProperties");
b.ToTable("IdentityServerApiResourceProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b =>
@ -1436,7 +1442,7 @@ namespace EventHub.Migrations
b.HasKey("ApiResourceId", "Scope");
b.ToTable("IdentityServerApiResourceScopes");
b.ToTable("IdentityServerApiResourceScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b =>
@ -1457,11 +1463,11 @@ namespace EventHub.Migrations
.HasColumnType("character varying(1000)");
b.Property<DateTime?>("Expiration")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.HasKey("ApiResourceId", "Type", "Value");
b.ToTable("IdentityServerApiResourceSecrets");
b.ToTable("IdentityServerApiResourceSecrets", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b =>
@ -1477,7 +1483,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -1489,7 +1495,7 @@ namespace EventHub.Migrations
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
@ -1517,7 +1523,7 @@ namespace EventHub.Migrations
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
@ -1537,7 +1543,7 @@ namespace EventHub.Migrations
b.HasKey("Id");
b.ToTable("IdentityServerApiScopes");
b.ToTable("IdentityServerApiScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b =>
@ -1551,7 +1557,7 @@ namespace EventHub.Migrations
b.HasKey("ApiScopeId", "Type");
b.ToTable("IdentityServerApiScopeClaims");
b.ToTable("IdentityServerApiScopeClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b =>
@ -1569,7 +1575,7 @@ namespace EventHub.Migrations
b.HasKey("ApiScopeId", "Key", "Value");
b.ToTable("IdentityServerApiScopeProperties");
b.ToTable("IdentityServerApiScopeProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
@ -1646,7 +1652,7 @@ namespace EventHub.Migrations
.HasColumnType("integer");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -1658,7 +1664,7 @@ namespace EventHub.Migrations
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
@ -1698,7 +1704,7 @@ namespace EventHub.Migrations
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
@ -1753,7 +1759,7 @@ namespace EventHub.Migrations
b.HasIndex("ClientId");
b.ToTable("IdentityServerClients");
b.ToTable("IdentityServerClients", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
@ -1771,7 +1777,7 @@ namespace EventHub.Migrations
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientClaims");
b.ToTable("IdentityServerClientClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
@ -1785,7 +1791,7 @@ namespace EventHub.Migrations
b.HasKey("ClientId", "Origin");
b.ToTable("IdentityServerClientCorsOrigins");
b.ToTable("IdentityServerClientCorsOrigins", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
@ -1799,7 +1805,7 @@ namespace EventHub.Migrations
b.HasKey("ClientId", "GrantType");
b.ToTable("IdentityServerClientGrantTypes");
b.ToTable("IdentityServerClientGrantTypes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
@ -1813,7 +1819,7 @@ namespace EventHub.Migrations
b.HasKey("ClientId", "Provider");
b.ToTable("IdentityServerClientIdPRestrictions");
b.ToTable("IdentityServerClientIdPRestrictions", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
@ -1827,7 +1833,7 @@ namespace EventHub.Migrations
b.HasKey("ClientId", "PostLogoutRedirectUri");
b.ToTable("IdentityServerClientPostLogoutRedirectUris");
b.ToTable("IdentityServerClientPostLogoutRedirectUris", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
@ -1845,7 +1851,7 @@ namespace EventHub.Migrations
b.HasKey("ClientId", "Key", "Value");
b.ToTable("IdentityServerClientProperties");
b.ToTable("IdentityServerClientProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
@ -1859,7 +1865,7 @@ namespace EventHub.Migrations
b.HasKey("ClientId", "RedirectUri");
b.ToTable("IdentityServerClientRedirectUris");
b.ToTable("IdentityServerClientRedirectUris", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
@ -1873,7 +1879,7 @@ namespace EventHub.Migrations
b.HasKey("ClientId", "Scope");
b.ToTable("IdentityServerClientScopes");
b.ToTable("IdentityServerClientScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
@ -1894,11 +1900,11 @@ namespace EventHub.Migrations
.HasColumnType("character varying(2000)");
b.Property<DateTime?>("Expiration")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientSecrets");
b.ToTable("IdentityServerClientSecrets", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b =>
@ -1919,7 +1925,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -1942,7 +1948,7 @@ namespace EventHub.Migrations
b.Property<DateTime?>("Expiration")
.IsRequired()
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
@ -1970,7 +1976,7 @@ namespace EventHub.Migrations
b.HasIndex("UserCode");
b.ToTable("IdentityServerDeviceFlowCodes");
b.ToTable("IdentityServerDeviceFlowCodes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b =>
@ -1991,10 +1997,10 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime?>("ConsumedTime")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<string>("Data")
.IsRequired()
@ -2006,7 +2012,7 @@ namespace EventHub.Migrations
.HasColumnType("character varying(200)");
b.Property<DateTime?>("Expiration")
.HasColumnType("timestamp without time zone");
.HasColumnType("timestamp with time zone");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
@ -2036,7 +2042,7 @@ namespace EventHub.Migrations
b.HasIndex("SubjectId", "SessionId", "Type");
b.ToTable("IdentityServerPersistedGrants");
b.ToTable("IdentityServerPersistedGrants", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b =>
@ -2052,7 +2058,7 @@ namespace EventHub.Migrations
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
@ -2064,7 +2070,7 @@ namespace EventHub.Migrations
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
@ -2092,7 +2098,7 @@ namespace EventHub.Migrations
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnType("timestamp with time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
@ -2112,7 +2118,7 @@ namespace EventHub.Migrations
b.HasKey("Id");
b.ToTable("IdentityServerIdentityResources");
b.ToTable("IdentityServerIdentityResources", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b =>
@ -2126,7 +2132,7 @@ namespace EventHub.Migrations
b.HasKey("IdentityResourceId", "Type");
b.ToTable("IdentityServerIdentityResourceClaims");
b.ToTable("IdentityServerIdentityResourceClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b =>
@ -2144,7 +2150,7 @@ namespace EventHub.Migrations
b.HasKey("IdentityResourceId", "Key", "Value");
b.ToTable("IdentityServerIdentityResourceProperties");
b.ToTable("IdentityServerIdentityResourceProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
@ -2176,7 +2182,7 @@ namespace EventHub.Migrations
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpPermissionGrants");
b.ToTable("AbpPermissionGrants", (string)null);
});
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
@ -2207,7 +2213,7 @@ namespace EventHub.Migrations
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpSettings");
b.ToTable("AbpSettings", (string)null);
});
modelBuilder.Entity("EventHub.Events.Event", b =>

2
src/EventHub.IdentityServer/EventHub.IdentityServer.csproj

@ -38,7 +38,7 @@
<PackageReference Include="Serilog.AspNetCore" Version="3.2.0" />
<PackageReference Include="Serilog.Sinks.Async" Version="1.4.0" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="6.0.0-rc.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.0-rc.*" />
</ItemGroup>
<ItemGroup>

Loading…
Cancel
Save