diff --git a/Musoq.Schema/Attributes/EntityPropertyAttribute.cs b/Musoq.Schema/Attributes/EntityPropertyAttribute.cs index bcfd29ba..6a99f464 100644 --- a/Musoq.Schema/Attributes/EntityPropertyAttribute.cs +++ b/Musoq.Schema/Attributes/EntityPropertyAttribute.cs @@ -2,6 +2,4 @@ namespace Musoq.Schema.Attributes; -public class EntityPropertyAttribute : Attribute -{ -} \ No newline at end of file +public class EntityPropertyAttribute : Attribute; \ No newline at end of file diff --git a/Musoq.Schema/Attributes/PluginSchemasAttribute.cs b/Musoq.Schema/Attributes/PluginSchemasAttribute.cs new file mode 100644 index 00000000..691ec19d --- /dev/null +++ b/Musoq.Schema/Attributes/PluginSchemasAttribute.cs @@ -0,0 +1,24 @@ +using System; + +namespace Musoq.Schema.Attributes; + +/// +/// Attribute to mark available schemas within the plugin +/// +[AttributeUsage(AttributeTargets.Assembly)] +public class PluginSchemasAttribute : Attribute +{ + /// + /// Schemas names. + /// + public string[] Schemas { get; } + + /// + /// Constructor. + /// + /// Schemas names. + public PluginSchemasAttribute(params string[] schemas) + { + Schemas = schemas; + } +} \ No newline at end of file diff --git a/Musoq.Schema/Musoq.Schema.csproj b/Musoq.Schema/Musoq.Schema.csproj index d9bcb317..eb4d6f55 100644 --- a/Musoq.Schema/Musoq.Schema.csproj +++ b/Musoq.Schema/Musoq.Schema.csproj @@ -3,7 +3,7 @@ net8.0 true - 7.3.0-rc2 + 7.3.0-rc3 Jakub Puchała Musoq https://github.com/Puchaczov/Musoq