Player Invites #10

Merged
Moonbase merged 7 commits from invites into master 2025-03-18 16:25:23 -07:00
4 changed files with 1358 additions and 0 deletions
Showing only changes of commit 22771249eb - Show all commits

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace sodoff.Migrations
{
/// <inheritdoc />
public partial class Viking_CurrentRoomId : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "CurrentRoomId",
table: "Vikings",
type: "INTEGER",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CurrentRoomId",
table: "Vikings");
}
}
}

View File

@ -823,6 +823,9 @@ namespace sodoff.Migrations
b.Property<DateTime?>("CreationDate")
.HasColumnType("TEXT");
b.Property<int?>("CurrentRoomId")
.HasColumnType("INTEGER");
b.Property<uint?>("GameVersion")
.HasColumnType("INTEGER");

View File

@ -24,6 +24,7 @@ public class Viking {
public int? SelectedDragonId { get; set; }
public bool? Online { get; set; }
public int? CurrentRoomId { get; set; }
public virtual ICollection<Session> Sessions { get; set; } = null!;
public virtual User User { get; set; } = null!;