2023-08-29 14:55:31 +02:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace WebAPI.Models
|
|
|
|
|
{
|
|
|
|
|
public enum LogEntryType
|
|
|
|
|
{
|
|
|
|
|
info,
|
|
|
|
|
warning,
|
|
|
|
|
error,
|
|
|
|
|
}
|
|
|
|
|
public enum LogType {
|
2023-09-01 18:23:53 +02:00
|
|
|
import,
|
2023-09-17 13:00:24 +02:00
|
|
|
backup,
|
2024-06-06 20:59:30 +02:00
|
|
|
process,
|
|
|
|
|
powerBI
|
2023-08-29 14:55:31 +02:00
|
|
|
}
|
|
|
|
|
public class LogEntry
|
|
|
|
|
{
|
|
|
|
|
public LogType LogType { get; set; }
|
|
|
|
|
public LogEntryType Type { get; set; }
|
|
|
|
|
public string? Message { get; set; }
|
|
|
|
|
public string? Title {get; set;}
|
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|