Add Archive model and update context for archive statistics

This commit is contained in:
2025-09-28 02:02:55 +01:00
parent b46d2acc7f
commit c137fef65d
5 changed files with 3034 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ namespace Aaru.Database.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.0")
.HasAnnotation("ProductVersion", "10.0.0-preview.7.25380.108")
.HasAnnotation("Proxies:ChangeTracking", false)
.HasAnnotation("Proxies:CheckEquality", false)
.HasAnnotation("Proxies:LazyLoading", true);
@@ -2010,6 +2010,26 @@ namespace Aaru.Database.Migrations
b.ToTable("Usb");
});
modelBuilder.Entity("Aaru.Database.Models.Archive", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<ulong>("Count")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasColumnType("TEXT");
b.Property<bool>("Synchronized")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("Archives");
});
modelBuilder.Entity("Aaru.Database.Models.CdOffset", b =>
{
b.Property<int>("Id")