using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using TakeoutSaaS.Infrastructure.App.Persistence; #nullable disable namespace TakeoutSaaS.Infrastructure.Migrations { /// [DbContext(typeof(TakeoutAppDbContext))] [Migration("20260201090000_AddStoreFeeTieredPackaging")] public partial class AddStoreFeeTieredPackaging : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "OrderPackagingFeeMode", table: "store_fees", type: "integer", nullable: false, defaultValue: 0, comment: "订单打包费规则(按订单收费时生效)。"); migrationBuilder.AddColumn( name: "PackagingFeeTiersJson", table: "store_fees", type: "text", nullable: true, comment: "阶梯打包费配置(JSON)。"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "OrderPackagingFeeMode", table: "store_fees"); migrationBuilder.DropColumn( name: "PackagingFeeTiersJson", table: "store_fees"); } } }