Browse Source

Add Payment migrations to EventHub

pull/69/head
enisn 5 years ago
parent
commit
17395f0015
  1. 2
      src/EventHub.EntityFrameworkCore/EntityFrameworkCore/EventHubDbContext.cs
  2. 2698
      src/EventHub.EntityFrameworkCore/Migrations/20211020111440_Added_Payment_Module.Designer.cs
  3. 52
      src/EventHub.EntityFrameworkCore/Migrations/20211020111440_Added_Payment_Module.cs
  4. 66
      src/EventHub.EntityFrameworkCore/Migrations/EventHubDbContextModelSnapshot.cs

2
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 Payment.EntityFrameworkCore;
using System;
using Volo.Abp.AuditLogging.EntityFrameworkCore;
using Volo.Abp.BackgroundJobs.EntityFrameworkCore;
@ -70,6 +71,7 @@ namespace EventHub.EntityFrameworkCore
builder.ConfigureBlobStoring();
builder.ConfigureEventHub();
builder.ConfigurePayment();
}
}
}

2698
src/EventHub.EntityFrameworkCore/Migrations/20211020111440_Added_Payment_Module.Designer.cs

File diff suppressed because it is too large

52
src/EventHub.EntityFrameworkCore/Migrations/20211020111440_Added_Payment_Module.cs

@ -0,0 +1,52 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EventHub.Migrations
{
public partial class Added_Payment_Module : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PayPaymentRequests",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
CustomerId = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
ProductId = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
ProductName = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
Price = table.Column<decimal>(type: "numeric", nullable: false),
Currency = table.Column<string>(type: "text", nullable: true),
State = table.Column<byte>(type: "smallint", nullable: false),
IsDeleted = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
FailReason = table.Column<string>(type: "text", nullable: true),
ExtraProperties = table.Column<string>(type: "text", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uuid", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_PayPaymentRequests", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_PayPaymentRequests_CustomerId",
table: "PayPaymentRequests",
column: "CustomerId");
migrationBuilder.CreateIndex(
name: "IX_PayPaymentRequests_State",
table: "PayPaymentRequests",
column: "State");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PayPaymentRequests");
}
}
}

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

@ -19,7 +19,7 @@ namespace EventHub.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.PostgreSql)
.HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10")
.HasAnnotation("ProductVersion", "6.0.0-rc.2.21480.5")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
@ -341,6 +341,70 @@ namespace EventHub.Migrations
b.ToTable("EhOrganizations", (string)null);
});
modelBuilder.Entity("Payment.PaymentRequests.PaymentRequest", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property<string>("Currency")
.HasColumnType("text");
b.Property<string>("CustomerId")
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property<string>("ExtraProperties")
.HasColumnType("text")
.HasColumnName("ExtraProperties");
b.Property<string>("FailReason")
.HasColumnType("text");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<decimal>("Price")
.HasColumnType("numeric");
b.Property<string>("ProductId")
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property<string>("ProductName")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property<byte>("State")
.HasColumnType("smallint");
b.HasKey("Id");
b.HasIndex("CustomerId");
b.HasIndex("State");
b.ToTable("PayPaymentRequests", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{
b.Property<Guid>("Id")

Loading…
Cancel
Save