forked from SoDOff-Project/sodoff
initial data model work
This commit is contained in:
parent
583bc04c1a
commit
22771249eb
1326
src/Migrations/20250318195040_Viking_CurrentRoomId.Designer.cs
generated
Normal file
1326
src/Migrations/20250318195040_Viking_CurrentRoomId.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
28
src/Migrations/20250318195040_Viking_CurrentRoomId.cs
Normal file
28
src/Migrations/20250318195040_Viking_CurrentRoomId.cs
Normal 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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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");
|
||||||
|
|
||||||
|
@ -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!;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user