4c6f9a4ba8
Database Migration, Repositories, Automapper, Logger, StaticFiles
27 lines
715 B
C#
27 lines
715 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace PortBlog.API.Entities
|
|
{
|
|
public class ClientLog
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(50)]
|
|
public string SiteName { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string SiteUrl { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string ClientIp { get; set; } = string.Empty;
|
|
|
|
public string? ClientLocation { get; set; } = string.Empty;
|
|
|
|
public DateTime CreatedDate { get; set; } = DateTime.Now;
|
|
}
|
|
} |