diff --git a/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.Designer.cs b/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20220119084149_Initial.Designer.cs similarity index 98% rename from services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.Designer.cs rename to services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20220119084149_Initial.Designer.cs index 1a5d55b0..13734040 100644 --- a/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.Designer.cs +++ b/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20220119084149_Initial.Designer.cs @@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; namespace EShopOnAbp.AdministrationService.Migrations { [DbContext(typeof(AdministrationServiceDbContext))] - [Migration("20211125123421_Initial")] + [Migration("20220119084149_Initial")] partial class Initial { protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -80,7 +80,7 @@ namespace EShopOnAbp.AdministrationService.Migrations .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("ExtraProperties") .HasColumnType("text") @@ -147,7 +147,7 @@ namespace EShopOnAbp.AdministrationService.Migrations .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("ExecutionTime"); b.Property("ExtraProperties") @@ -192,7 +192,7 @@ namespace EShopOnAbp.AdministrationService.Migrations .HasColumnName("AuditLogId"); b.Property("ChangeTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("ChangeTime"); b.Property("ChangeType") diff --git a/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.cs b/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20220119084149_Initial.cs similarity index 99% rename from services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.cs rename to services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20220119084149_Initial.cs index 696bc02a..63f88e67 100644 --- a/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211125123421_Initial.cs +++ b/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20220119084149_Initial.cs @@ -21,7 +21,7 @@ namespace EShopOnAbp.AdministrationService.Migrations TenantName = table.Column(type: "text", nullable: true), ImpersonatorUserId = table.Column(type: "uuid", nullable: true), ImpersonatorTenantId = table.Column(type: "uuid", nullable: true), - ExecutionTime = table.Column(type: "timestamp with time zone", nullable: false), + ExecutionTime = table.Column(type: "timestamp without time zone", nullable: false), ExecutionDuration = table.Column(type: "integer", nullable: false), ClientIpAddress = table.Column(type: "character varying(64)", maxLength: 64, nullable: true), ClientName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true), @@ -111,7 +111,7 @@ namespace EShopOnAbp.AdministrationService.Migrations ServiceName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), MethodName = table.Column(type: "character varying(128)", maxLength: 128, nullable: true), Parameters = table.Column(type: "character varying(2000)", maxLength: 2000, nullable: true), - ExecutionTime = table.Column(type: "timestamp with time zone", nullable: false), + ExecutionTime = table.Column(type: "timestamp without time zone", nullable: false), ExecutionDuration = table.Column(type: "integer", nullable: false), ExtraProperties = table.Column(type: "text", nullable: true) }, @@ -133,7 +133,7 @@ namespace EShopOnAbp.AdministrationService.Migrations Id = table.Column(type: "uuid", nullable: false), AuditLogId = table.Column(type: "uuid", nullable: false), TenantId = table.Column(type: "uuid", nullable: true), - ChangeTime = table.Column(type: "timestamp with time zone", nullable: false), + ChangeTime = table.Column(type: "timestamp without time zone", nullable: false), ChangeType = table.Column(type: "smallint", nullable: false), EntityTenantId = table.Column(type: "uuid", nullable: true), EntityId = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), diff --git a/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/AdministrationServiceDbContextModelSnapshot.cs b/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/AdministrationServiceDbContextModelSnapshot.cs index 96f9132b..4a6395fc 100644 --- a/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/AdministrationServiceDbContextModelSnapshot.cs +++ b/services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/AdministrationServiceDbContextModelSnapshot.cs @@ -78,7 +78,7 @@ namespace EShopOnAbp.AdministrationService.Migrations .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("ExtraProperties") .HasColumnType("text") @@ -145,7 +145,7 @@ namespace EShopOnAbp.AdministrationService.Migrations .HasColumnName("ExecutionDuration"); b.Property("ExecutionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("ExecutionTime"); b.Property("ExtraProperties") @@ -190,7 +190,7 @@ namespace EShopOnAbp.AdministrationService.Migrations .HasColumnName("AuditLogId"); b.Property("ChangeTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("ChangeTime"); b.Property("ChangeType") diff --git a/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.Designer.cs b/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20220119084201_Initial.Designer.cs similarity index 97% rename from services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.Designer.cs rename to services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20220119084201_Initial.Designer.cs index a07ea510..c3be7014 100644 --- a/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.Designer.cs +++ b/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20220119084201_Initial.Designer.cs @@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; namespace EShopOnAbp.IdentityService.Migrations { [DbContext(typeof(IdentityServiceDbContext))] - [Migration("20211125125938_Initial")] + [Migration("20220119084201_Initial")] partial class Initial { protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -209,7 +209,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("character varying(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("ExtraProperties") .HasColumnType("text") @@ -265,7 +265,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -277,7 +277,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Email") @@ -312,7 +312,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsExternal"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -467,7 +467,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -547,7 +547,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -559,7 +559,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("DisplayName") @@ -579,7 +579,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -611,7 +611,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -645,7 +645,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -657,7 +657,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Description") @@ -682,7 +682,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -766,7 +766,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("character varying(1000)"); b.Property("Expiration") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.HasKey("ApiResourceId", "Type", "Value"); @@ -785,7 +785,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -797,7 +797,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Description") @@ -825,7 +825,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -953,7 +953,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("integer"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -965,7 +965,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Description") @@ -1005,7 +1005,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -1201,7 +1201,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("character varying(2000)"); b.Property("Expiration") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.HasKey("ClientId", "Type", "Value"); @@ -1225,7 +1225,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -1248,7 +1248,7 @@ namespace EShopOnAbp.IdentityService.Migrations b.Property("Expiration") .IsRequired() - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("ExtraProperties") .HasColumnType("text") @@ -1297,10 +1297,10 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("ConsumedTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("Data") .IsRequired() @@ -1312,7 +1312,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("character varying(200)"); b.Property("Expiration") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("ExtraProperties") .HasColumnType("text") @@ -1357,7 +1357,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -1369,7 +1369,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Description") @@ -1397,7 +1397,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") diff --git a/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.cs b/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20220119084201_Initial.cs similarity index 97% rename from services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.cs rename to services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20220119084201_Initial.cs index 423dd971..71feae2d 100644 --- a/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211125125938_Initial.cs +++ b/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20220119084201_Initial.cs @@ -55,13 +55,13 @@ namespace EShopOnAbp.IdentityService.Migrations DisplayName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), ExtraProperties = table.Column(type: "text", nullable: true), ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModificationTime = table.Column(type: "timestamp without time zone", nullable: true), LastModifierId = table.Column(type: "uuid", nullable: true), IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + DeletionTime = table.Column(type: "timestamp without time zone", nullable: true) }, constraints: table => { @@ -108,7 +108,7 @@ namespace EShopOnAbp.IdentityService.Migrations CorrelationId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true), ClientIpAddress = table.Column(type: "character varying(64)", maxLength: 64, nullable: true), BrowserInfo = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), ExtraProperties = table.Column(type: "text", nullable: true), ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: true) }, @@ -142,13 +142,13 @@ namespace EShopOnAbp.IdentityService.Migrations AccessFailedCount = table.Column(type: "integer", nullable: false, defaultValue: 0), ExtraProperties = table.Column(type: "text", nullable: true), ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModificationTime = table.Column(type: "timestamp without time zone", nullable: true), LastModifierId = table.Column(type: "uuid", nullable: true), IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + DeletionTime = table.Column(type: "timestamp without time zone", nullable: true) }, constraints: table => { @@ -168,13 +168,13 @@ namespace EShopOnAbp.IdentityService.Migrations ShowInDiscoveryDocument = table.Column(type: "boolean", nullable: false), ExtraProperties = table.Column(type: "text", nullable: true), ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModificationTime = table.Column(type: "timestamp without time zone", nullable: true), LastModifierId = table.Column(type: "uuid", nullable: true), IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + DeletionTime = table.Column(type: "timestamp without time zone", nullable: true) }, constraints: table => { @@ -195,13 +195,13 @@ namespace EShopOnAbp.IdentityService.Migrations ShowInDiscoveryDocument = table.Column(type: "boolean", nullable: false), ExtraProperties = table.Column(type: "text", nullable: true), ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModificationTime = table.Column(type: "timestamp without time zone", nullable: true), LastModifierId = table.Column(type: "uuid", nullable: true), IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + DeletionTime = table.Column(type: "timestamp without time zone", nullable: true) }, constraints: table => { @@ -254,13 +254,13 @@ namespace EShopOnAbp.IdentityService.Migrations DeviceCodeLifetime = table.Column(type: "integer", nullable: false), ExtraProperties = table.Column(type: "text", nullable: true), ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModificationTime = table.Column(type: "timestamp without time zone", nullable: true), LastModifierId = table.Column(type: "uuid", nullable: true), IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + DeletionTime = table.Column(type: "timestamp without time zone", nullable: true) }, constraints: table => { @@ -278,11 +278,11 @@ namespace EShopOnAbp.IdentityService.Migrations SessionId = table.Column(type: "character varying(100)", maxLength: 100, nullable: true), ClientId = table.Column(type: "character varying(200)", maxLength: 200, nullable: false), Description = table.Column(type: "character varying(200)", maxLength: 200, nullable: true), - Expiration = table.Column(type: "timestamp with time zone", nullable: false), + Expiration = table.Column(type: "timestamp without time zone", nullable: false), Data = table.Column(type: "character varying(50000)", maxLength: 50000, nullable: false), ExtraProperties = table.Column(type: "text", nullable: true), ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), CreatorId = table.Column(type: "uuid", nullable: true) }, constraints: table => @@ -304,13 +304,13 @@ namespace EShopOnAbp.IdentityService.Migrations ShowInDiscoveryDocument = table.Column(type: "boolean", nullable: false), ExtraProperties = table.Column(type: "text", nullable: true), ConcurrencyStamp = table.Column(type: "character varying(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), CreatorId = table.Column(type: "uuid", nullable: true), - LastModificationTime = table.Column(type: "timestamp with time zone", nullable: true), + LastModificationTime = table.Column(type: "timestamp without time zone", nullable: true), LastModifierId = table.Column(type: "uuid", nullable: true), IsDeleted = table.Column(type: "boolean", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uuid", nullable: true), - DeletionTime = table.Column(type: "timestamp with time zone", nullable: true) + DeletionTime = table.Column(type: "timestamp without time zone", nullable: true) }, constraints: table => { @@ -327,9 +327,9 @@ namespace EShopOnAbp.IdentityService.Migrations SessionId = table.Column(type: "character varying(100)", maxLength: 100, nullable: true), ClientId = table.Column(type: "character varying(200)", maxLength: 200, nullable: false), Description = table.Column(type: "character varying(200)", maxLength: 200, nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), - Expiration = table.Column(type: "timestamp with time zone", nullable: true), - ConsumedTime = table.Column(type: "timestamp with time zone", nullable: true), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), + Expiration = table.Column(type: "timestamp without time zone", nullable: true), + ConsumedTime = table.Column(type: "timestamp without time zone", nullable: true), Data = table.Column(type: "character varying(50000)", maxLength: 50000, nullable: false), Id = table.Column(type: "uuid", nullable: false), ExtraProperties = table.Column(type: "text", nullable: true), @@ -347,7 +347,7 @@ namespace EShopOnAbp.IdentityService.Migrations RoleId = table.Column(type: "uuid", nullable: false), OrganizationUnitId = table.Column(type: "uuid", nullable: false), TenantId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), CreatorId = table.Column(type: "uuid", nullable: true) }, constraints: table => @@ -437,7 +437,7 @@ namespace EShopOnAbp.IdentityService.Migrations UserId = table.Column(type: "uuid", nullable: false), OrganizationUnitId = table.Column(type: "uuid", nullable: false), TenantId = table.Column(type: "uuid", nullable: true), - CreationTime = table.Column(type: "timestamp with time zone", nullable: false), + CreationTime = table.Column(type: "timestamp without time zone", nullable: false), CreatorId = table.Column(type: "uuid", nullable: true) }, constraints: table => @@ -566,7 +566,7 @@ namespace EShopOnAbp.IdentityService.Migrations Value = table.Column(type: "character varying(4000)", maxLength: 4000, nullable: false), ApiResourceId = table.Column(type: "uuid", nullable: false), Description = table.Column(type: "character varying(1000)", maxLength: 1000, nullable: true), - Expiration = table.Column(type: "timestamp with time zone", nullable: true) + Expiration = table.Column(type: "timestamp without time zone", nullable: true) }, constraints: table => { @@ -770,7 +770,7 @@ namespace EShopOnAbp.IdentityService.Migrations Value = table.Column(type: "character varying(4000)", maxLength: 4000, nullable: false), ClientId = table.Column(type: "uuid", nullable: false), Description = table.Column(type: "character varying(2000)", maxLength: 2000, nullable: true), - Expiration = table.Column(type: "timestamp with time zone", nullable: true) + Expiration = table.Column(type: "timestamp without time zone", nullable: true) }, constraints: table => { diff --git a/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/IdentityServiceDbContextModelSnapshot.cs b/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/IdentityServiceDbContextModelSnapshot.cs index 4f461647..65114f4b 100644 --- a/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/IdentityServiceDbContextModelSnapshot.cs +++ b/services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/IdentityServiceDbContextModelSnapshot.cs @@ -207,7 +207,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("character varying(64)"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("ExtraProperties") .HasColumnType("text") @@ -263,7 +263,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -275,7 +275,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Email") @@ -310,7 +310,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsExternal"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -465,7 +465,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -545,7 +545,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -557,7 +557,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("DisplayName") @@ -577,7 +577,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -609,7 +609,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("uuid"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -643,7 +643,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -655,7 +655,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Description") @@ -680,7 +680,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -764,7 +764,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("character varying(1000)"); b.Property("Expiration") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.HasKey("ApiResourceId", "Type", "Value"); @@ -783,7 +783,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -795,7 +795,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Description") @@ -823,7 +823,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -951,7 +951,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("integer"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -963,7 +963,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Description") @@ -1003,7 +1003,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") @@ -1199,7 +1199,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("character varying(2000)"); b.Property("Expiration") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.HasKey("ClientId", "Type", "Value"); @@ -1223,7 +1223,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -1246,7 +1246,7 @@ namespace EShopOnAbp.IdentityService.Migrations b.Property("Expiration") .IsRequired() - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("ExtraProperties") .HasColumnType("text") @@ -1295,10 +1295,10 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("ConsumedTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("Data") .IsRequired() @@ -1310,7 +1310,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnType("character varying(200)"); b.Property("Expiration") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("ExtraProperties") .HasColumnType("text") @@ -1355,7 +1355,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId") @@ -1367,7 +1367,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("DeleterId"); b.Property("DeletionTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("DeletionTime"); b.Property("Description") @@ -1395,7 +1395,7 @@ namespace EShopOnAbp.IdentityService.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") diff --git a/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/20220119084330_Npgsql_Time.Designer.cs b/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/20220119084330_Npgsql_Time.Designer.cs new file mode 100644 index 00000000..064bc088 --- /dev/null +++ b/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/20220119084330_Npgsql_Time.Designer.cs @@ -0,0 +1,208 @@ +// +using System; +using EShopOnAbp.OrderingService.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; +using Volo.Abp.EntityFrameworkCore; + +#nullable disable + +namespace EShopOnAbp.OrderingService.Migrations +{ + [DbContext(typeof(OrderingServiceDbContext))] + [Migration("20220119084330_Npgsql_Time")] + partial class Npgsql_Time + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql) + .HasAnnotation("ProductVersion", "6.0.0") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("EShopOnAbp.OrderingService.Orders.Order", b => + { + b.Property("Id") + .HasColumnType("uuid"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("character varying(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("ExtraProperties") + .HasColumnType("text") + .HasColumnName("ExtraProperties"); + + b.Property("OrderDate") + .HasColumnType("timestamp without time zone"); + + b.Property("OrderNo") + .HasColumnType("integer"); + + b.Property("PaymentMethod") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)"); + + b.Property("PaymentRequestId") + .HasColumnType("uuid"); + + b.Property("PaymentStatus") + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.Property("_orderStatusId") + .HasColumnType("integer") + .HasColumnName("OrderStatusId"); + + b.HasKey("Id"); + + b.HasIndex("_orderStatusId"); + + b.ToTable("Orders", (string)null); + }); + + modelBuilder.Entity("EShopOnAbp.OrderingService.Orders.OrderItem", b => + { + b.Property("Id") + .HasColumnType("uuid"); + + b.Property("Discount") + .HasColumnType("numeric"); + + b.Property("OrderId") + .HasColumnType("uuid"); + + b.Property("PictureUrl") + .HasColumnType("text"); + + b.Property("ProductCode") + .IsRequired() + .HasColumnType("text"); + + b.Property("ProductId") + .HasColumnType("uuid"); + + b.Property("ProductName") + .IsRequired() + .HasColumnType("text"); + + b.Property("UnitPrice") + .HasColumnType("numeric"); + + b.Property("Units") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("OrderId"); + + b.ToTable("OrderItems", (string)null); + }); + + modelBuilder.Entity("EShopOnAbp.OrderingService.Orders.OrderStatus", b => + { + b.Property("Id") + .HasColumnType("integer") + .HasDefaultValue(1); + + b.Property("Name") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.HasKey("Id"); + + b.ToTable("OrderStatus", (string)null); + }); + + modelBuilder.Entity("EShopOnAbp.OrderingService.Orders.Order", b => + { + b.HasOne("EShopOnAbp.OrderingService.Orders.OrderStatus", "OrderStatus") + .WithMany() + .HasForeignKey("_orderStatusId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.OwnsOne("EShopOnAbp.OrderingService.Orders.Address", "Address", b1 => + { + b1.Property("OrderId") + .HasColumnType("uuid"); + + b1.Property("City") + .HasColumnType("text"); + + b1.Property("Country") + .HasColumnType("text"); + + b1.Property("Description") + .HasColumnType("text"); + + b1.Property("Street") + .HasColumnType("text"); + + b1.Property("ZipCode") + .HasColumnType("text"); + + b1.HasKey("OrderId"); + + b1.ToTable("Orders"); + + b1.WithOwner() + .HasForeignKey("OrderId"); + }); + + b.OwnsOne("EShopOnAbp.OrderingService.Orders.Buyer", "Buyer", b1 => + { + b1.Property("OrderId") + .HasColumnType("uuid"); + + b1.Property("Email") + .HasColumnType("text"); + + b1.Property("Id") + .HasColumnType("uuid"); + + b1.Property("Name") + .HasColumnType("text"); + + b1.HasKey("OrderId"); + + b1.ToTable("Orders"); + + b1.WithOwner() + .HasForeignKey("OrderId"); + }); + + b.Navigation("Address"); + + b.Navigation("Buyer"); + + b.Navigation("OrderStatus"); + }); + + modelBuilder.Entity("EShopOnAbp.OrderingService.Orders.OrderItem", b => + { + b.HasOne("EShopOnAbp.OrderingService.Orders.Order", null) + .WithMany("OrderItems") + .HasForeignKey("OrderId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("EShopOnAbp.OrderingService.Orders.Order", b => + { + b.Navigation("OrderItems"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/20220119084330_Npgsql_Time.cs b/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/20220119084330_Npgsql_Time.cs new file mode 100644 index 00000000..36c1a4a7 --- /dev/null +++ b/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/20220119084330_Npgsql_Time.cs @@ -0,0 +1,32 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace EShopOnAbp.OrderingService.Migrations +{ + public partial class Npgsql_Time : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "OrderDate", + table: "Orders", + type: "timestamp without time zone", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "timestamp with time zone"); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "OrderDate", + table: "Orders", + type: "timestamp with time zone", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "timestamp without time zone"); + } + } +} diff --git a/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/OrderingServiceDbContextModelSnapshot.cs b/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/OrderingServiceDbContextModelSnapshot.cs index 2b0060f2..d1a7946a 100644 --- a/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/OrderingServiceDbContextModelSnapshot.cs +++ b/services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/Migrations/OrderingServiceDbContextModelSnapshot.cs @@ -40,7 +40,7 @@ namespace EShopOnAbp.OrderingService.Migrations .HasColumnName("ExtraProperties"); b.Property("OrderDate") - .HasColumnType("timestamp with time zone"); + .HasColumnType("timestamp without time zone"); b.Property("OrderNo") .HasColumnType("integer"); diff --git a/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/20220119084346_Npgsql_Time.Designer.cs b/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/20220119084346_Npgsql_Time.Designer.cs new file mode 100644 index 00000000..ae458b77 --- /dev/null +++ b/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/20220119084346_Npgsql_Time.Designer.cs @@ -0,0 +1,140 @@ +// +using System; +using EShopOnAbp.PaymentService.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; +using Volo.Abp.EntityFrameworkCore; + +#nullable disable + +namespace EShopOnAbp.PaymentService.Migrations +{ + [DbContext(typeof(PaymentServiceDbContext))] + [Migration("20220119084346_Npgsql_Time")] + partial class Npgsql_Time + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql) + .HasAnnotation("ProductVersion", "6.0.0") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("EShopOnAbp.PaymentService.PaymentRequests.PaymentRequest", b => + { + b.Property("Id") + .HasColumnType("uuid"); + + b.Property("BuyerId") + .HasColumnType("text"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("character varying(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("timestamp without time zone") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uuid") + .HasColumnName("CreatorId"); + + b.Property("Currency") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("character varying(3)"); + + b.Property("ExtraProperties") + .HasColumnType("text") + .HasColumnName("ExtraProperties"); + + b.Property("FailReason") + .HasColumnType("text"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("OrderId") + .IsRequired() + .HasMaxLength(36) + .HasColumnType("character varying(36)"); + + b.Property("OrderNo") + .HasColumnType("integer"); + + b.Property("State") + .HasColumnType("integer"); + + b.HasKey("Id"); + + b.HasIndex("OrderId"); + + b.ToTable("PaymentRequests"); + }); + + modelBuilder.Entity("EShopOnAbp.PaymentService.PaymentRequests.PaymentRequestProduct", b => + { + b.Property("Id") + .HasColumnType("uuid"); + + b.Property("Code") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("character varying(32)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)"); + + b.Property("PaymentRequestId") + .HasColumnType("uuid"); + + b.Property("Quantity") + .HasColumnType("integer"); + + b.Property("ReferenceId") + .HasColumnType("text"); + + b.Property("TotalPrice") + .HasColumnType("numeric"); + + b.Property("UnitPrice") + .HasColumnType("numeric"); + + b.HasKey("Id"); + + b.HasIndex("PaymentRequestId"); + + b.ToTable("PaymentRequestProduct"); + }); + + modelBuilder.Entity("EShopOnAbp.PaymentService.PaymentRequests.PaymentRequestProduct", b => + { + b.HasOne("EShopOnAbp.PaymentService.PaymentRequests.PaymentRequest", null) + .WithMany("Products") + .HasForeignKey("PaymentRequestId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("EShopOnAbp.PaymentService.PaymentRequests.PaymentRequest", b => + { + b.Navigation("Products"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/20220119084346_Npgsql_Time.cs b/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/20220119084346_Npgsql_Time.cs new file mode 100644 index 00000000..c3bc3efd --- /dev/null +++ b/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/20220119084346_Npgsql_Time.cs @@ -0,0 +1,32 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace EShopOnAbp.PaymentService.Migrations +{ + public partial class Npgsql_Time : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "CreationTime", + table: "PaymentRequests", + type: "timestamp without time zone", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "timestamp with time zone"); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "CreationTime", + table: "PaymentRequests", + type: "timestamp with time zone", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "timestamp without time zone"); + } + } +} diff --git a/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/PaymentServiceDbContextModelSnapshot.cs b/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/PaymentServiceDbContextModelSnapshot.cs index 426cd7ac..ed6cd9b4 100644 --- a/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/PaymentServiceDbContextModelSnapshot.cs +++ b/services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/Migrations/PaymentServiceDbContextModelSnapshot.cs @@ -39,7 +39,7 @@ namespace EShopOnAbp.PaymentService.Migrations .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") - .HasColumnType("timestamp with time zone") + .HasColumnType("timestamp without time zone") .HasColumnName("CreationTime"); b.Property("CreatorId")