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>2025-08-18 10:59:32 +1000
commit07a4c7ead01514bd3f304f00abc38140a1d73634 (patch)
tree6606addd04356c1b39e316ae3c7deb39bea28442 /HyperBooruContext.cs
parentb8833351cbbd6505d86e3fb8a791344fa1fbc94c (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