feat(config): persist is_foil_preferred + is_prize_preferred (stubs → real)

This commit is contained in:
gamer147
2026-06-13 09:54:51 -04:00
parent 911374106f
commit 13ca7d118e
8 changed files with 4783 additions and 13 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SVSim.Database.Migrations
{
/// <inheritdoc />
public partial class ConfigPreferenceFlags : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "Info_IsFoilPreferred",
table: "Viewers",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "Info_IsPrizePreferred",
table: "Viewers",
type: "boolean",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Info_IsFoilPreferred",
table: "Viewers");
migrationBuilder.DropColumn(
name: "Info_IsPrizePreferred",
table: "Viewers");
}
}
}

View File

@@ -4340,12 +4340,18 @@ namespace SVSim.Database.Migrations
.IsRequired()
.HasColumnType("text");
b1.Property<bool>("IsFoilPreferred")
.HasColumnType("boolean");
b1.Property<bool>("IsOfficial")
.HasColumnType("boolean");
b1.Property<bool>("IsOfficialMarkDisplayed")
.HasColumnType("boolean");
b1.Property<bool>("IsPrizePreferred")
.HasColumnType("boolean");
b1.Property<int>("MaxFriends")
.HasColumnType("integer");

View File

@@ -10,6 +10,8 @@ public class ViewerInfo
public int MaxFriends { get; set; }
public bool IsOfficial { get; set; }
public bool IsOfficialMarkDisplayed { get; set; }
public bool IsFoilPreferred { get; set; }
public bool IsPrizePreferred { get; set; }
#region Navigation Properties