From 07a4c7ead01514bd3f304f00abc38140a1d73634 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 14 Aug 2023 00:29:38 +1000 Subject: Added functionality for ingest tagging and implicit tags --- HyperBooruContext.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'HyperBooruContext.cs') 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().ToTable("Tags"); modelBuilder.Entity().ToTable("Media"); modelBuilder.Entity().ToTable("UploadedFiles"); + + modelBuilder.Entity().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 -- cgit v1.3