using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations.AppDb { /// public partial class AddPaymentReconcileLog : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PaymentReconcileLog", columns: table => new { ID = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), PaymentOrderID = table.Column(type: "int", nullable: false), Kind = table.Column(type: "int", nullable: false), TransactionID = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), Amount = table.Column(type: "int", nullable: false), Reason = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), CreatedAt = table.Column(type: "datetime2", nullable: false) }, constraints: table => { table.PrimaryKey("PK_PaymentReconcileLog", x => x.ID); }, comment: "PG 성공 후 저장 실패 대사 로그 (Phase 1.5)"); migrationBuilder.CreateIndex( name: "IX_PaymentReconcileLog_CreatedAt", table: "PaymentReconcileLog", column: "CreatedAt"); migrationBuilder.CreateIndex( name: "IX_PaymentReconcileLog_PaymentOrderID", table: "PaymentReconcileLog", column: "PaymentOrderID"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PaymentReconcileLog"); } } }