//-----------------------------------------------------------------------
//
// Copyright (c) lanedirt. All rights reserved.
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
//
//-----------------------------------------------------------------------
namespace AliasVault.Shared.Models.WebApi.Security;
using AliasVault.Shared.Models.Enums;
///
/// Auth Log model.
///
public class AuthLogModel
{
///
/// Gets or sets the primary key for the auth log entry.
///
public int Id { get; set; }
///
/// Gets or sets the timestamp of the auth log entry.
///
public DateTime Timestamp { get; set; }
///
/// Gets or sets the type of authentication event.
///
public AuthEventType EventType { get; set; }
///
/// Gets or sets the username associated with the auth log entry.
///
public string Username { get; set; } = string.Empty;
///
/// Gets or sets the IP address from which the authentication attempt was made.
///
public string IpAddress { get; set; } = string.Empty;
///
/// Gets or sets the user agent string of the device used for the authentication attempt.
///
public string UserAgent { get; set; } = string.Empty;
///
/// Gets or sets the client application name and version.
///
public string Client { get; set; } = string.Empty;
///
/// Gets or sets a value indicating whether the authentication attempt was successful.
///
public bool IsSuccess { get; set; }
}