using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Microsoft.EntityFrameworkCore; namespace Artemis.Storage.Entities.Plugins; /// /// Represents the configuration of a plugin, each plugin has one configuration /// [Index(nameof(PluginGuid), IsUnique = true)] public class PluginEntity { public PluginEntity() { Features = new List(); } public Guid Id { get; set; } public Guid PluginGuid { get; set; } public bool IsEnabled { get; set; } public List Features { get; set; } } /// /// Represents the configuration of a plugin feature, each feature has one configuration /// public class PluginFeatureEntity { public Guid Id { get; set; } public string Type { get; set; } = string.Empty; public bool IsEnabled { get; set; } }