summaryrefslogtreecommitdiff
path: root/Migrations/HyperBooruDbContextModelSnapshot.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-15 15:49:14 +1000
committerJake Mannens <jake@asger.xyz>2023-08-15 15:49:14 +1000
commit8e94a12be4a56447e78d68c37def772bef8cade4 (patch)
tree0a12c64f8e34da45df8ac8e4c484c83385aedb45 /Migrations/HyperBooruDbContextModelSnapshot.cs
parent5b00f23b28e3a09a4120101a8be8802d009e5d84 (diff)
Convert Razor pages to Blazor
Diffstat (limited to 'Migrations/HyperBooruDbContextModelSnapshot.cs')
-rw-r--r--Migrations/HyperBooruDbContextModelSnapshot.cs236
1 files changed, 0 insertions, 236 deletions
diff --git a/Migrations/HyperBooruDbContextModelSnapshot.cs b/Migrations/HyperBooruDbContextModelSnapshot.cs
deleted file mode 100644
index 7096799..0000000
--- a/Migrations/HyperBooruDbContextModelSnapshot.cs
+++ /dev/null
@@ -1,236 +0,0 @@
-// <auto-generated />
-using System;
-using HyperBooru;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-#nullable disable
-
-namespace HyperBooru.Migrations
-{
- [DbContext(typeof(HyperBooruDbContext))]
- partial class HyperBooruDbContextModelSnapshot : ModelSnapshot
- {
- protected override void BuildModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "7.0.10")
- .HasAnnotation("Proxies:ChangeTracking", false)
- .HasAnnotation("Proxies:CheckEquality", false)
- .HasAnnotation("Proxies:LazyLoading", true);
-
- modelBuilder.Entity("HyperBooru.DbObject", b =>
- {
- b.Property<int>("ObjectId")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property<Guid>("Guid")
- .HasColumnType("TEXT");
-
- b.Property<int>("ObjectType")
- .HasColumnType("INTEGER");
-
- b.HasKey("ObjectId");
-
- b.HasIndex("Guid");
-
- b.ToTable("Objects", (string)null);
-
- b.UseTptMappingStrategy();
- });
-
- modelBuilder.Entity("HyperBooru.DbUploadedFile", b =>
- {
- b.Property<int>("UploadedFileId")
- .ValueGeneratedOnAdd()
- .HasColumnType("INTEGER");
-
- b.Property<DateTime?>("CreateTime")
- .HasColumnType("TEXT");
-
- b.Property<string>("Filename")
- .HasColumnType("TEXT");
-
- b.Property<DateTime?>("LastAccessTime")
- .HasColumnType("TEXT");
-
- b.Property<DateTime?>("LastWriteTime")
- .HasColumnType("TEXT");
-
- b.Property<int>("MediaObjectId")
- .HasColumnType("INTEGER");
-
- b.Property<string>("OriginalChecksum")
- .IsRequired()
- .HasColumnType("TEXT");
-
- b.Property<DateTime>("UploadTime")
- .HasColumnType("TEXT");
-
- b.HasKey("UploadedFileId");
-
- b.HasIndex("MediaObjectId");
-
- b.ToTable("UploadedFiles", (string)null);
- });
-
- modelBuilder.Entity("HyperBooru.DbMedia", b =>
- {
- b.HasBaseType("HyperBooru.DbObject");
-
- b.Property<string>("Checksum")
- .IsRequired()
- .HasColumnType("TEXT");
-
- b.Property<string>("LongDescription")
- .HasColumnType("TEXT");
-
- b.Property<string>("MimeType")
- .IsRequired()
- .HasColumnType("TEXT");
-
- b.Property<string>("ShortDescription")
- .HasColumnType("TEXT");
-
- b.ToTable("Media", (string)null);
- });
-
- modelBuilder.Entity("HyperBooru.DbTag", b =>
- {
- b.HasBaseType("HyperBooru.DbObject");
-
- b.Property<DateTime>("CreateTime")
- .HasColumnType("TEXT");
-
- b.Property<int>("TagDefinitionObjectId")
- .HasColumnType("INTEGER");
-
- b.Property<int>("TargetObjectId")
- .HasColumnType("INTEGER");
-
- b.HasIndex("TagDefinitionObjectId");
-
- b.HasIndex("TargetObjectId");
-
- b.ToTable("Tags", (string)null);
- });
-
- modelBuilder.Entity("HyperBooru.DbTagDefinition", b =>
- {
- b.HasBaseType("HyperBooru.DbObject");
-
- b.Property<int?>("DbTagDefinitionObjectId")
- .HasColumnType("INTEGER");
-
- b.Property<string>("Name")
- .IsRequired()
- .HasColumnType("TEXT");
-
- b.Property<string>("Namespace")
- .HasColumnType("TEXT");
-
- b.Property<int>("Source")
- .HasColumnType("INTEGER");
-
- b.HasIndex("DbTagDefinitionObjectId");
-
- b.ToTable("TagDefinitions", (string)null);
-
- b.HasData(
- new
- {
- ObjectId = -1,
- Guid = new Guid("a03e1649-bd30-4db1-a81d-be05ba05f357"),
- ObjectType = 0,
- Name = "nsfw",
- Source = 0
- },
- new
- {
- ObjectId = -2,
- Guid = new Guid("3094fe00-8e41-4c08-8828-dea2ba878dd4"),
- ObjectType = 0,
- Name = "ingest",
- Source = 0
- });
- });
-
- modelBuilder.Entity("HyperBooru.DbUploadedFile", b =>
- {
- b.HasOne("HyperBooru.DbMedia", "Media")
- .WithMany("UploadedFiles")
- .HasForeignKey("MediaObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Media");
- });
-
- modelBuilder.Entity("HyperBooru.DbMedia", b =>
- {
- b.HasOne("HyperBooru.DbObject", null)
- .WithOne()
- .HasForeignKey("HyperBooru.DbMedia", "ObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("HyperBooru.DbTag", b =>
- {
- b.HasOne("HyperBooru.DbObject", null)
- .WithOne()
- .HasForeignKey("HyperBooru.DbTag", "ObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("HyperBooru.DbTagDefinition", "TagDefinition")
- .WithMany()
- .HasForeignKey("TagDefinitionObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("HyperBooru.DbObject", "Target")
- .WithMany("Tags")
- .HasForeignKey("TargetObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("TagDefinition");
-
- b.Navigation("Target");
- });
-
- modelBuilder.Entity("HyperBooru.DbTagDefinition", b =>
- {
- b.HasOne("HyperBooru.DbTagDefinition", null)
- .WithMany("ImplicitTags")
- .HasForeignKey("DbTagDefinitionObjectId");
-
- b.HasOne("HyperBooru.DbObject", null)
- .WithOne()
- .HasForeignKey("HyperBooru.DbTagDefinition", "ObjectId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- });
-
- modelBuilder.Entity("HyperBooru.DbObject", b =>
- {
- b.Navigation("Tags");
- });
-
- modelBuilder.Entity("HyperBooru.DbMedia", b =>
- {
- b.Navigation("UploadedFiles");
- });
-
- modelBuilder.Entity("HyperBooru.DbTagDefinition", b =>
- {
- b.Navigation("ImplicitTags");
- });
-#pragma warning restore 612, 618
- }
- }
-}