forked from SoDOff-Project/sodoff
Player Invites #10
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")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int?>("CurrentRoomId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<uint?>("GameVersion")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
|
@ -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!;
|
||||
|
Loading…
x
Reference in New Issue
Block a user