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>2025-08-18 17:03:21 +1000
commitf150338f7a275bd7664f59a4365f163a17049bd0 (patch)
tree7f7759bee0db8d1fd8c6202e8af76b4a2bbc5258 /Tag.cs
parent5d462af49365e84e0dfd7ed5bd862efb6b325cd1 (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 {