feat(pack): persist daily_free_gacha_count on PackChildGachaEntry
This commit is contained in:
4193
SVSim.Database/Migrations/20260609012522_AddPackChildGachaDailyFreeGachaCount.Designer.cs
generated
Normal file
4193
SVSim.Database/Migrations/20260609012522_AddPackChildGachaDailyFreeGachaCount.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SVSim.Database.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddPackChildGachaDailyFreeGachaCount : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "DailyFreeGachaCount",
|
||||
table: "PackChildGachaEntry",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DailyFreeGachaCount",
|
||||
table: "PackChildGachaEntry");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3441,6 +3441,9 @@ namespace SVSim.Database.Migrations
|
||||
b1.Property<int>("Cost")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("DailyFreeGachaCount")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int?>("FreeGachaCampaignId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ public class PackChildGachaEntry
|
||||
public bool IsDailySingle { get; set; }
|
||||
public int OverrideIncreaseGachaPoint { get; set; }
|
||||
public int PurchaseLimitCount { get; set; }
|
||||
public int DailyFreeGachaCount { get; set; }
|
||||
public int? FreeGachaCampaignId { get; set; }
|
||||
public string? CampaignName { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user