From 727dcaacc6df8813a9296ac858dd51d11f3737b8 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Thu, 17 Aug 2023 09:36:09 +1000 Subject: Update DB schema to fix implicit tags bug --- Tag.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Tag.cs') 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 ImplicitTags { get; set; } = new(); + public TagSource Source { get; set; } = TagSource.Internal; + public string? Namespace { get; set; } + public string Name { get; set; } + public virtual List ImplicitTags { get; set; } = new(); } public class Tag : HBObject { -- cgit v1.3