diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-17 09:36:09 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-17 09:36:09 +1000 |
| commit | 727dcaacc6df8813a9296ac858dd51d11f3737b8 (patch) | |
| tree | 916834e8d626ddd1cf9618e01dff1a01ad25f94a /Tag.cs | |
| parent | 6a6514df8b5f40cad4f5afb284bdd199f0e8f450 (diff) | |
Update DB schema to fix implicit tags bug
Diffstat (limited to 'Tag.cs')
| -rw-r--r-- | Tag.cs | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 { |
