27 lines
616 B
C#
27 lines
616 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Cowain.Base.Models;
|
|
|
|
[Table("logs")]
|
|
public class SerilogDto : BaseModel
|
|
{
|
|
[Key]
|
|
public int id { get; set; }
|
|
|
|
[Required]
|
|
public string Timestamp { get; set; } = string.Empty;
|
|
[Required]
|
|
public DateTime _ts { get; set; }
|
|
|
|
[Required]
|
|
public string Level { get; set; } = string.Empty;
|
|
|
|
public string? Template { get; set; } = string.Empty;
|
|
|
|
public string? Message { get; set; }
|
|
public string? Exception { get; set; }
|
|
|
|
public string? Properties { get; set; }
|
|
}
|