using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SVSim.Database.Migrations { /// public partial class MypagePaymentItems : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PaymentItems", columns: table => new { Id = table.Column(type: "integer", nullable: false), ProductId = table.Column(type: "integer", nullable: false), StoreProductId = table.Column(type: "bigint", nullable: false), Name = table.Column(type: "text", nullable: false), Text = table.Column(type: "text", nullable: false), Price = table.Column(type: "numeric", nullable: false), ChargeCrystalNum = table.Column(type: "integer", nullable: false), FreeCrystalNum = table.Column(type: "integer", nullable: false), PurchaseLimit = table.Column(type: "integer", nullable: false), SpecialShopFlag = table.Column(type: "integer", nullable: false), ImageName = table.Column(type: "text", nullable: false), StartTime = table.Column(type: "timestamp with time zone", nullable: false), EndTime = table.Column(type: "timestamp with time zone", nullable: false), RemainingTime = table.Column(type: "integer", nullable: false), IsResaleProduct = table.Column(type: "integer", nullable: false), ResaleStartDate = table.Column(type: "timestamp with time zone", nullable: true), DateCreated = table.Column(type: "timestamp with time zone", nullable: false), DateUpdated = table.Column(type: "timestamp with time zone", nullable: true) }, constraints: table => { table.PrimaryKey("PK_PaymentItems", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PaymentItems"); } } }