oqtane.framework/Oqtane.Shared/Models/Visitor.cs
2021-12-09 08:48:56 -05:00

62 lines
1.5 KiB
C#

using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Models
{
/// <summary>
/// Describes a Visitor in Oqtane.
/// </summary>
public class Visitor
{
/// <summary>
/// ID of this Visitor.
/// </summary>
public int VisitorId { get; set; }
/// <summary>
/// Reference to a <see cref="Site"/>
/// </summary>
public int SiteId { get; set; }
/// <summary>
/// Reference to a <see cref="User"/> if applicable
/// </summary>
public int? UserId { get; set; }
/// <summary>
/// Number of times a visitor has visited a site
/// </summary>
public int Visits { get; set; }
/// <summary>
/// IP Address of visitor
/// </summary>
public string IPAddress { get; set; }
/// <summary>
/// User agent of visitor
/// </summary>
public string UserAgent { get; set; }
/// <summary>
/// Language of visitor
/// </summary>
public string Language { get; set; }
/// <summary>
/// Date the visitor first visited the site
/// </summary>
public DateTime CreatedOn { get; set; }
/// <summary>
/// Date the visitor last visited the site
/// </summary>
public DateTime VisitedOn { get; set; }
/// <summary>
/// Direct reference to the <see cref="User"/> object (if applicable)
/// </summary>
public User User { get; set; }
}
}