summaryrefslogtreecommitdiff
path: root/Tag.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-17 09:36:09 +1000
committerJake Mannens <jake@asger.xyz>2023-08-17 09:36:09 +1000
commit727dcaacc6df8813a9296ac858dd51d11f3737b8 (patch)
tree916834e8d626ddd1cf9618e01dff1a01ad25f94a /Tag.cs
parent6a6514df8b5f40cad4f5afb284bdd199f0e8f450 (diff)
Update DB schema to fix implicit tags bug
Diffstat (limited to 'Tag.cs')
-rw-r--r--Tag.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/Tag.cs b/Tag.cs
index 0f7fed2..810c49c 100644
--- a/Tag.cs
+++ b/Tag.cs
@@ -1,4 +1,5 @@
-using System.ComponentModel.DataAnnotations;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace HyperBooru;
@@ -9,10 +10,10 @@ public enum TagSource {
}
public class TagDefinition : HBObject {
- public TagSource Source { get; set; } = TagSource.Internal;
- public string? Namespace { get; set; }
- public string Name { get; set; }
- public virtual List<TagDefinition> ImplicitTags { get; set; } = new();
+ public TagSource Source { get; set; } = TagSource.Internal;
+ public string? Namespace { get; set; }
+ public string Name { get; set; }
+ public virtual List<TagDefinition> ImplicitTags { get; set; } = new();
}
public class Tag : HBObject {