changes
This commit is contained in:
38
Models/JournalEntry.cs
Normal file
38
Models/JournalEntry.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user