🗃️ Remove the fk of session in action logs in order to fix logout

This commit is contained in:
2025-06-25 00:03:50 +08:00
parent d9747daab9
commit c6cb2a0dc3
4 changed files with 3662 additions and 12 deletions

View File

@ -4,7 +4,7 @@ using Point = NetTopologySuite.Geometries.Point;
namespace DysonNetwork.Sphere.Account;
public class ActionLogType
public abstract class ActionLogType
{
public const string NewLogin = "login";
public const string ChallengeAttempt = "challenges.attempt";
@ -55,5 +55,4 @@ public class ActionLog : ModelBase
public Guid AccountId { get; set; }
public Account Account { get; set; } = null!;
public Guid? SessionId { get; set; }
public Auth.Session? Session { get; set; } = null!;
}