Files
WCS/Cowain.Base/Models/SerilogDto.cs
2026-03-02 09:08:20 +08:00

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; }
}