1
0

16 lines
458 B
C#

using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace Flawless.Server.Models;
[Index(nameof(Timestamp))]
public class SystemLog
{
[Key]
public int Id { get; set; }
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
public LogLevel LogLevel { get; set; }
public string Message { get; set; } = string.Empty;
public string? Exception { get; set; }
public string? Source { get; set; }
}