Unban work

This commit is contained in:
defnotken
2025-09-04 10:54:52 -05:00
parent b782b0694f
commit 4feb64f015
12 changed files with 2400 additions and 3 deletions

View File

@@ -54,4 +54,8 @@
<ProjectReference Include="..\..\LightlessAPI\LightlessSyncAPI\LightlessSync.API.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="LightlessSyncServer\Migrations\" />
</ItemGroup>
</Project>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,36 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LightlessSyncServer.Migrations
{
/// <inheritdoc />
public partial class AddBannedUid : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "banned_uid",
table: "banned_users",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(10)",
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "banned_uid",
table: "banned_users",
type: "character varying(10)",
nullable: true,
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
}
}
}

View File

@@ -68,6 +68,10 @@ namespace LightlessSyncServer.Migrations
.HasColumnType("text")
.HasColumnName("reason");
b.Property<string>("BannedUid")
.HasColumnType("character varying(10)")
.HasColumnName("banned_uid");
b.Property<byte[]>("Timestamp")
.IsConcurrencyToken()
.ValueGeneratedOnAddOrUpdate()

View File

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