summaryrefslogtreecommitdiff
path: root/HyperBooruContext.cs
diff options
context:
space:
mode:
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