mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
29 lines
791 B
C#
29 lines
791 B
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text;
|
|
|
|
namespace Remotely_Library.Models
|
|
{
|
|
public class EventLog
|
|
{
|
|
[Key]
|
|
public string ID { get; set; } = Guid.NewGuid().ToString().Replace("-", "");
|
|
public EventTypes EventType { get; set; }
|
|
public string Message { get; set; }
|
|
public string Source { get; set; }
|
|
public string StackTrace { get; set; }
|
|
public string OrganizationID { get; set; }
|
|
public DateTime TimeStamp { get; set; } = DateTime.Now;
|
|
[JsonIgnore]
|
|
public virtual Organization Organization { get; set; }
|
|
}
|
|
public enum EventTypes
|
|
{
|
|
Info = 0,
|
|
Error = 1,
|
|
Debug = 2
|
|
}
|
|
}
|