summaryrefslogtreecommitdiff
path: root/Migrations/HBContextModelSnapshot.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-09-06 09:30:54 +1000
committerJake Mannens <jake@asger.xyz>2023-09-06 09:30:54 +1000
commitc1c81ba6a14437e020841f1d454d473bbda6b52b (patch)
treec6086bd8f8f4048bf3257ba93503605249d379c1 /Migrations/HBContextModelSnapshot.cs
parent33a3c4d57d774d98c3836c98ecbd2e1dd5ea84c3 (diff)
Moved metadata from Media object to UploadedFile object
Diffstat (limited to 'Migrations/HBContextModelSnapshot.cs')
-rw-r--r--Migrations/HBContextModelSnapshot.cs26
1 files changed, 11 insertions, 15 deletions
diff --git a/Migrations/HBContextModelSnapshot.cs b/Migrations/HBContextModelSnapshot.cs
index 81ee485..a24b920 100644
--- a/Migrations/HBContextModelSnapshot.cs
+++ b/Migrations/HBContextModelSnapshot.cs
@@ -91,29 +91,15 @@ namespace HyperBooru.Migrations
{
b.HasBaseType("HyperBooru.HBObject");
- b.Property<string>("Checksum")
- .IsRequired()
- .HasColumnType("text");
-
b.Property<int>("CurrentUploadedFileId")
.HasColumnType("integer");
- b.Property<int>("Height")
- .HasColumnType("integer");
-
b.Property<string>("LongDescription")
.HasColumnType("text");
- b.Property<string>("MimeType")
- .IsRequired()
- .HasColumnType("text");
-
b.Property<string>("ShortDescription")
.HasColumnType("text");
- b.Property<int>("Width")
- .HasColumnType("integer");
-
b.HasIndex("CurrentUploadedFileId")
.IsUnique();
@@ -180,6 +166,10 @@ namespace HyperBooru.Migrations
{
b.HasBaseType("HyperBooru.HBObject");
+ b.Property<string>("Checksum")
+ .IsRequired()
+ .HasColumnType("text");
+
b.Property<bool>("ChecksumVerified")
.HasColumnType("boolean");
@@ -189,6 +179,9 @@ namespace HyperBooru.Migrations
b.Property<string>("Filename")
.HasColumnType("text");
+ b.Property<int?>("Height")
+ .HasColumnType("integer");
+
b.Property<DateTime?>("LastAccessTime")
.HasColumnType("timestamp with time zone");
@@ -201,13 +194,16 @@ namespace HyperBooru.Migrations
b.Property<int>("MediaObjectId")
.HasColumnType("integer");
- b.Property<string>("OriginalChecksum")
+ b.Property<string>("MimeType")
.IsRequired()
.HasColumnType("text");
b.Property<DateTime>("UploadTime")
.HasColumnType("timestamp with time zone");
+ b.Property<int?>("Width")
+ .HasColumnType("integer");
+
b.HasIndex("MediaObjectId");
b.ToTable("UploadedFiles", (string)null);