diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-19 00:36:30 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-19 00:36:30 +1000 |
| commit | dfff79815acc86c02dd94716098d409d3fe46ab7 (patch) | |
| tree | efb5d4176a9b094b3b40b1a968789931cc861d54 /HBContext.cs | |
| parent | a57b6ea2e174cedb04a422a05a180f377ed4c448 (diff) | |
Added basic search engine functionality
Diffstat (limited to 'HBContext.cs')
| -rw-r--r-- | HBContext.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/HBContext.cs b/HBContext.cs index 04f2d1a..45b8852 100644 --- a/HBContext.cs +++ b/HBContext.cs @@ -35,8 +35,18 @@ public class HBContext : DbContext { // Seed internal tag definitions // These should NEVER change modelBuilder.Entity<TagDefinition>().HasData(new TagDefinition[] { - new() { ObjectId = -1, Source = TagSource.Internal, Name = "nsfw" }, - new() { ObjectId = -2, Source = TagSource.Internal, Name = "ingest" } + new() { + ObjectId = -1, + Guid = new("EBDAD4F8-455A-4351-8017-1D4854D6FA38"), + Source = TagSource.Internal, + Name = "nsfw" + }, + new() { + ObjectId = -2, + Guid = new("EA212801-5BCC-4C0E-814F-FB9D30DB58BC"), + Source = TagSource.Internal, + Name = "ingest" + } }); // Implicit tags need some special attention to make many<->many |
