Proper trace for auth session

This commit is contained in:
2025-12-04 00:38:44 +08:00
parent 2020d625aa
commit ad3c104c5c
5 changed files with 2947 additions and 11 deletions

View File

@@ -26,6 +26,7 @@ public class SnAuthSession : ModelBase
[Column(TypeName = "jsonb")] public List<string> Scopes { get; set; } = [];
[MaxLength(128)] public string? IpAddress { get; set; }
[MaxLength(512)] public string? UserAgent { get; set; }
[Column(TypeName = "jsonb")] public GeoPoint? Location { get; set; }
public Guid AccountId { get; set; }
[JsonIgnore] public SnAccount Account { get; set; } = null!;