added support for url mapping and viitors

This commit is contained in:
Shaun Walker
2021-12-09 08:48:56 -05:00
parent de798da074
commit 9c32937c83
45 changed files with 2212 additions and 127 deletions

View File

@ -0,0 +1,47 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Models
{
/// <summary>
/// Describes a UrlMapping in Oqtane.
/// </summary>
public class UrlMapping
{
/// <summary>
/// ID of this UrlMapping.
/// </summary>
public int UrlMappingId { get; set; }
/// <summary>
/// Reference to a <see cref="Site"/>
/// </summary>
public int SiteId { get; set; }
/// <summary>
/// A fully quaified Url
/// </summary>
public string Url { get; set; }
/// <summary>
/// A Url the visitor will be redirected to
/// </summary>
public string MappedUrl { get; set; }
/// <summary>
/// Number of requests all time for the url
/// </summary>
public int Requests { get; set; }
/// <summary>
/// Date when the url was first requested for the site
/// </summary>
public DateTime CreatedOn { get; set; }
/// <summary>
/// Date when the url was last requested for the site
/// </summary>
public DateTime RequestedOn { get; set; }
}
}