#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.Common;
using Lumina.Domain.SharedKernel.Common.Enums.Plugins;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Application.Common.DataAccess.Entities.Plugins;
///
/// Repository entity for a plugin.
///
[DebuggerDisplay("Name: {Name}")]
public class PluginEntity : IStorageEntity, IAuditableEntity
{
///
/// Gets the Id of the plugin.
///
public required Guid Id { get; init; }
///
/// Gets or sets the display name of the plugin.
///
public required string Name { get; set; }
///
/// Gets or sets the author of the plugin.
///
public required string Author { get; set; }
///
/// Gets or sets the version of the plugin.
///
public required string Version { get; set; }
///
/// Gets or sets the description of the plugin.
///
public required string Description { get; set; }
///
/// Gets or sets the load status of the plugin.
///
public PluginLoadStatus LoadStatus { get; set; }
///
/// Gets or sets the error message when the plugin failed to load.
///
public string? LoadError { get; set; }
///
/// Gets or sets the serialized settings of the plugin.
///
public string? SettingsJson { get; set; }
///
/// Gets or sets the time and date when the entity was added.
///
public DateTime CreatedOnUtc { get; set; }
///
/// Gets or sets the Id of the user that created the entity.
///
public Guid CreatedBy { get; set; }
///
/// Gets or sets the optional time and date when the entity was updated.
///
public DateTime? UpdatedOnUtc { get; set; }
///
/// Gets or sets the optional Id of the user that updated the entity.
///
public Guid? UpdatedBy { get; set; }
}