initial data model work

This commit is contained in:
Alan Moon 2025-03-18 12:51:24 -07:00
parent 583bc04c1a
commit 22771249eb
4 changed files with 1358 additions and 0 deletions

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") b.Property<DateTime?>("CreationDate")
.HasColumnType("TEXT"); .HasColumnType("TEXT");
b.Property<int?>("CurrentRoomId")
.HasColumnType("INTEGER");
b.Property<uint?>("GameVersion") b.Property<uint?>("GameVersion")
.HasColumnType("INTEGER"); .HasColumnType("INTEGER");

View File

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