summaryrefslogtreecommitdiff
path: root/Migrations/HBContextModelSnapshot.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-06-05 00:37:02 +1000
committerJake Mannens <jake@asger.xyz>2026-06-11 01:13:31 +1000
commit81a0570c1b64891f286ee86d34d6f77090d525e3 (patch)
tree1c98593ddec2eb64029f4fabe024cb5323050bb1 /Migrations/HBContextModelSnapshot.cs
parent03055cb1b262a2b9a0516ad3aa523e503edeb36b (diff)
Deleted server-specific files
Diffstat (limited to 'Migrations/HBContextModelSnapshot.cs')
-rw-r--r--Migrations/HBContextModelSnapshot.cs359
1 files changed, 0 insertions, 359 deletions
diff --git a/Migrations/HBContextModelSnapshot.cs b/Migrations/HBContextModelSnapshot.cs
deleted file mode 100644
index 422037f..0000000
--- a/Migrations/HBContextModelSnapshot.cs
+++ /dev/null
@@ -1,359 +0,0 @@
-// <auto-generated />
-using System;
-using HyperBooru;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
-
-#nullable disable
-
-namespace HyperBooru.Migrations
-{
- [DbContext(typeof(HBContext))]
- partial class HBContextModelSnapshot : ModelSnapshot
- {
- protected override void BuildModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "8.0.23")
- .HasAnnotation("Relational:MaxIdentifierLength", 63);
-
- NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
-
- modelBuilder.Entity("HyperBooru.HBObject", b =>
- {
- b.Property<int>("ObjectId")
- .ValueGeneratedOnAdd()
- .HasColumnType("integer");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("ObjectId"));
-
- b.Property<Guid>("Guid")
- .HasColumnType("uuid");
-
- b.HasKey("ObjectId");
-
- b.HasIndex("Guid");
-
- b.ToTable("Objects", (string)null);
-
- b.UseTptMappingStrategy();
- });
-
- modelBuilder.Entity("HyperBooru.OcrData", b =>
- {
- b.Property<int>("OcrDataId")
- .ValueGeneratedOnAdd()
- .HasColumnType("integer");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("OcrDataId"));
-
- b.Property<int>("MediaId")
- .HasColumnType("integer");
-
- b.Property<string>("SearchableText")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property<string>("Text")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property<DateTime>("Timestamp")
- .HasColumnType("timestamp with time zone");
-
- b.HasKey("OcrDataId");
-
- b.HasIndex("MediaId")
- .IsUnique();
-
- b.ToTable("OcrData");
- });
-
- modelBuilder.Entity("TagDefinitionTagDefinition", b =>
- {
- b.Property<int>("ImplicitTagsObjectId")
- .HasColumnType("integer");
-
- b.Property<int>("TagDefinitionObjectId")
- .HasColumnType("integer");
-
- b.HasKey("ImplicitTagsObjectId", "TagDefinitionObjectId");
-
- b.HasIndex("TagDefinitionObjectId");
-
- b.ToTable("TagDefinitionTagDefinition");
- });
-
- modelBuilder.Entity("HyperBooru.Media", b =>
- {
- b.HasBaseType("HyperBooru.HBObject");
-
- b.Property<int?>("CurrentUploadedFileId")
- .HasColumnType("integer");
-
- b.Property<string>("LongDescription")
- .HasColumnType("text");
-
- b.Property<string>("ShortDescription")
- .HasColumnType("text");
-
- b.HasIndex("CurrentUploadedFileId")
- .IsUnique();
-
- b.ToTable("Media", (string)null);
- });
-
- modelBuilder.Entity("HyperBooru.Tag", b =>
- {
- b.HasBaseType("HyperBooru.HBObject");
-
- b.Property<DateTime>("CreateTime")
- .HasColumnType("timestamp with time zone");
-
- b.Property<int>("TagDefinitionId")
- .HasColumnType("integer");
-
- b.Property<int>("TargetObjectId")
- .HasColumnType("integer");
-
- b.HasIndex("TagDefinitionId");
-
- b.HasIndex("TargetObjectId");
-
- b.ToTable("Tags", (string)null);
- });
-
- modelBuilder.Entity("HyperBooru.TagDefinition", b =>
- {
- b.HasBaseType("HyperBooru.HBObject");
-
- b.Property<string>("Alias")
- .HasColumnType("text");
-
- b.Property<string>("Name")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property<string>("Namespace")
- .HasColumnType("text");
-
- b.Property<int>("Source")
- .HasColumnType("integer");
-
- b.ToTable("TagDefinitions", (string)null);
-
- b.HasData(
- new
- {
- ObjectId = -1,
- Guid = new Guid("ebdad4f8-455a-4351-8017-1d4854d6fa38"),
- Name = "nsfw",
- Source = 0
- },
- new
- {
- ObjectId = -2,
- Guid = new Guid("ea212801-5bcc-4c0e-814f-fb9d30db58bc"),
- Name = "ingest",
- Source = 0
- });
- });
-
- modelBuilder.Entity("HyperBooru.UploadedFile", b =>
- {
- b.HasBaseType("HyperBooru.HBObject");
-
- b.Property<string>("Checksum")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property<bool>("ChecksumVerified")
- .HasColumnType("boolean");
-
- b.Property<DateTime?>("CreateTime")
- .HasColumnType("timestamp with time zone");
-
- b.Property<string>("Filename")
- .HasColumnType("text");
-
- b.Property<int?>("Height")
- .HasColumnType("integer");
-
- b.Property<DateTime?>("LastAccessTime")
- .HasColumnType("timestamp with time zone");
-
- b.Property<DateTime?>("LastWriteTime")
- .HasColumnType("timestamp with time zone");
-
- b.Property<long>("Length")
- .HasColumnType("bigint");
-
- b.Property<int>("MediaObjectId")
- .HasColumnType("integer");
-
- b.Property<string>("MimeType")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property<string>("Path")
- .HasColumnType("text");
-
- b.Property<int?>("PathType")
- .HasColumnType("integer");
-
- b.Property<DateTime>("UploadTime")
- .HasColumnType("timestamp with time zone");
-
- b.Property<int?>("Width")
- .HasColumnType("integer");
-
- b.HasIndex("MediaObjectId");
-
- b.ToTable("UploadedFiles", (string)null);
- });
-
- modelBuilder.Entity("HyperBooru.User", b =>
- {
- b.HasBaseType("HyperBooru.HBObject");
-
- b.Property<string>("PasswordHash")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property<string>("Username")
- .IsRequired()
- .HasColumnType("text");
-
- b.HasIndex("Username");
-
- b.ToTable("Users");
-
- b.HasData(
- new
- {
- ObjectId = -3,
- Guid = new Guid("4fa948f4-7c45-4f81-bb6b-e417491e6c96"),
- PasswordHash = "P4geAuE2yX/PDRHuJSq74FF5vO782rWz5c0LAQPR8m45DEYAONhu1wYnAn60PSNyjocqEBdnCeKCJfK3sKyuWw==",
- Username = "admin"
- });
- });
-
- modelBuilder.Entity("HyperBooru.OcrData", b =>
- {
- b.HasOne("HyperBooru.Media", "Media")
- .WithOne("OcrData")
- .HasForeignKey("HyperBooru.OcrData", "MediaId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Media");
- });
-
- modelBuilder.Entity("TagDefinitionTagDefinition", b =>
- {
- b.HasOne("HyperBooru.TagDefinition", null)
- .WithMany()
- .HasForeignKey("ImplicitTagsObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("HyperBooru.TagDefinition", null)
- .WithMany()
- .HasForeignKey("TagDefinitionObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("HyperBooru.Media", b =>
- {
- b.HasOne("HyperBooru.UploadedFile", "CurrentUploadedFile")
- .WithOne()
- .HasForeignKey("HyperBooru.Media", "CurrentUploadedFileId");
-
- b.HasOne("HyperBooru.HBObject", null)
- .WithOne()
- .HasForeignKey("HyperBooru.Media", "ObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("CurrentUploadedFile");
- });
-
- modelBuilder.Entity("HyperBooru.Tag", b =>
- {
- b.HasOne("HyperBooru.HBObject", null)
- .WithOne()
- .HasForeignKey("HyperBooru.Tag", "ObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("HyperBooru.TagDefinition", "TagDefinition")
- .WithMany()
- .HasForeignKey("TagDefinitionId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("HyperBooru.HBObject", "Target")
- .WithMany("Tags")
- .HasForeignKey("TargetObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("TagDefinition");
-
- b.Navigation("Target");
- });
-
- modelBuilder.Entity("HyperBooru.TagDefinition", b =>
- {
- b.HasOne("HyperBooru.HBObject", null)
- .WithOne()
- .HasForeignKey("HyperBooru.TagDefinition", "ObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("HyperBooru.UploadedFile", b =>
- {
- b.HasOne("HyperBooru.Media", "Media")
- .WithMany("UploadedFiles")
- .HasForeignKey("MediaObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("HyperBooru.HBObject", null)
- .WithOne()
- .HasForeignKey("HyperBooru.UploadedFile", "ObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Media");
- });
-
- modelBuilder.Entity("HyperBooru.User", b =>
- {
- b.HasOne("HyperBooru.HBObject", null)
- .WithOne()
- .HasForeignKey("HyperBooru.User", "ObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("HyperBooru.HBObject", b =>
- {
- b.Navigation("Tags");
- });
-
- modelBuilder.Entity("HyperBooru.Media", b =>
- {
- b.Navigation("OcrData");
-
- b.Navigation("UploadedFiles");
- });
-#pragma warning restore 612, 618
- }
- }
-}