readding banned column

This commit is contained in:
defnotken
2025-09-05 14:29:37 -05:00
parent 176f0e7e56
commit 56bc277436
3 changed files with 10 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace LightlessSyncServer.Migrations
{
[DbContext(typeof(LightlessDbContext))]
[Migration("20250905190334_AddBannedUid")]
[Migration("20250905192853_AddBannedUid")]
partial class AddBannedUid
{
/// <inheritdoc />

View File

@@ -10,13 +10,19 @@ namespace LightlessSyncServer.Migrations
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "banned_uid",
table: "banned_users",
type: "text",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "banned_uid",
table: "banned_users");
}
}
}

View File

@@ -7,8 +7,8 @@ public class Banned
[Key]
[MaxLength(100)]
public string CharacterIdentification { get; set; }
public string Reason { get; set; }
public string BannedUid { get; set; }
public string Reason { get; set; }
[Timestamp]
public byte[] Timestamp { get; set; }
}