summaryrefslogtreecommitdiff
path: root/HyperBooruContext.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-14 00:29:38 +1000
committerJake Mannens <jake@asger.xyz>2023-08-14 00:29:38 +1000
commit5b00f23b28e3a09a4120101a8be8802d009e5d84 (patch)
tree53a9190c2c8ad57b25c6e429e97fcc8ff6bdeb23 /HyperBooruContext.cs
parent3ce156d00197a894ac9b0507544afd51aec2a0fd (diff)
Added functionality for ingest tagging and implicit tags
Diffstat (limited to 'HyperBooruContext.cs')
-rw-r--r--HyperBooruContext.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/HyperBooruContext.cs b/HyperBooruContext.cs
index fecbc4c..3a9aa0f 100644
--- a/HyperBooruContext.cs
+++ b/HyperBooruContext.cs
@@ -28,5 +28,10 @@ public class HyperBooruDbContext : DbContext {
modelBuilder.Entity<DbTag>().ToTable("Tags");
modelBuilder.Entity<DbMedia>().ToTable("Media");
modelBuilder.Entity<DbUploadedFile>().ToTable("UploadedFiles");
+
+ modelBuilder.Entity<DbTagDefinition>().HasData(new DbTagDefinition[] {
+ new() { ObjectId = -1, Source = TagSource.Internal, Name = "nsfw" },
+ new() { ObjectId = -2, Source = TagSource.Internal, Name = "ingest" }
+ });
}
} \ No newline at end of file