38 lines
959 B
C#
38 lines
959 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
|
|
||
|
|
namespace public_valetax.Models
|
||
|
|
{
|
||
|
|
[Table("journal_entries")]
|
||
|
|
public class JournalEntry
|
||
|
|
{
|
||
|
|
[Key]
|
||
|
|
[Column("id")]
|
||
|
|
public long Id { get; set; }
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
[Column("event_id")]
|
||
|
|
public long EventId { get; set; }
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
[Column("timestamp")]
|
||
|
|
public DateTime Timestamp { get; set; }
|
||
|
|
|
||
|
|
[Column("query_parameters")]
|
||
|
|
public string? QueryParameters { get; set; }
|
||
|
|
|
||
|
|
[Column("body_parameters")]
|
||
|
|
public string? BodyParameters { get; set; }
|
||
|
|
|
||
|
|
[Column("stack_trace")]
|
||
|
|
public string? StackTrace { get; set; }
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
[Column("exception_type")]
|
||
|
|
public string ExceptionType { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
[Required]
|
||
|
|
[Column("message")]
|
||
|
|
public string Message { get; set; } = string.Empty;
|
||
|
|
}
|
||
|
|
}
|