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