namespace e_suite.API.Common.models;

public class ExceptionLog
{
    public ExceptionLog()
    {
    }

    public ExceptionLog(e_suite.Database.Core.Tables.Diagnostics.ExceptionLog exceptionLog)
    {
        Id = exceptionLog.Id;
        Application = exceptionLog.Application;
        ExceptionJson = exceptionLog.ExceptionJson;
        Message = exceptionLog.Message;
        OccuredAt = exceptionLog.OccuredAt;
        StackTrace = exceptionLog.StackTrace;
        SupportingData = exceptionLog.SupportingData;
    }

    public long Id { get; set; }

    public string Application { get; set; } = string.Empty;

    public string ExceptionJson { get; set; } = string.Empty;

    public string Message { get; set; } = string.Empty;

    public string StackTrace { get; set; } = string.Empty;

    public string SupportingData { get; set; } = string.Empty;

    public DateTimeOffset OccuredAt { get; set; }
}
