summaryrefslogtreecommitdiff
path: root/HBContext.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-20 22:59:09 +1000
committerJake Mannens <jake@asger.xyz>2023-08-20 22:59:09 +1000
commitc29bdd4a9ec782411f57e3c798e1bb01ca7d417d (patch)
treefdb2046af3454a96a9733e156b9c86f538eea21c /HBContext.cs
parentdfff79815acc86c02dd94716098d409d3fe46ab7 (diff)
NSFW tagging and tag editing
Diffstat (limited to 'HBContext.cs')
-rw-r--r--HBContext.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/HBContext.cs b/HBContext.cs
index 45b8852..73ccdcb 100644
--- a/HBContext.cs
+++ b/HBContext.cs
@@ -4,6 +4,9 @@ using HyperBooru.Services;
namespace HyperBooru;
public class HBContext : DbContext {
+ public static readonly Guid NSFWTag = new("EBDAD4F8-455A-4351-8017-1D4854D6FA38");
+ public static readonly Guid IngestTag = new("EA212801-5BCC-4C0E-814F-FB9D30DB58BC");
+
public DbSet<HBObject> Objects { get; set; }
public DbSet<TagDefinition> TagDefinitions { get; set; }
public DbSet<Tag> Tags { get; set; }
@@ -37,13 +40,13 @@ public class HBContext : DbContext {
modelBuilder.Entity<TagDefinition>().HasData(new TagDefinition[] {
new() {
ObjectId = -1,
- Guid = new("EBDAD4F8-455A-4351-8017-1D4854D6FA38"),
+ Guid = NSFWTag,
Source = TagSource.Internal,
Name = "nsfw"
},
new() {
ObjectId = -2,
- Guid = new("EA212801-5BCC-4C0E-814F-FB9D30DB58BC"),
+ Guid = IngestTag,
Source = TagSource.Internal,
Name = "ingest"
}