ilk commit

This commit is contained in:
hOLOlu
2026-05-04 01:19:04 +03:00
commit 5f33557f2d
2072 changed files with 75437 additions and 0 deletions

View File

@@ -0,0 +1,264 @@
// <auto-generated />
using System;
using DownloadManager.Core.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace DownloadManager.Core.Data.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260501194147_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.26");
modelBuilder.Entity("DownloadManager.Core.Models.AppSetting", b =>
{
b.Property<string>("Key")
.HasColumnType("TEXT");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Key");
b.ToTable("Settings");
});
modelBuilder.Entity("DownloadManager.Core.Models.DownloadCategory", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Extensions")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("SavePath")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Categories");
b.HasData(
new
{
Id = 1,
Extensions = "exe,msi,dmg",
Name = "Yazılım",
SavePath = "%USERPROFILE%\\Downloads\\Yazılım"
},
new
{
Id = 2,
Extensions = "pdf,docx,xlsx,pptx",
Name = "Belge",
SavePath = "%USERPROFILE%\\Downloads\\Belgeler"
},
new
{
Id = 3,
Extensions = "mp3,flac,wav,aac",
Name = "Ses",
SavePath = "%USERPROFILE%\\Downloads\\Ses"
},
new
{
Id = 4,
Extensions = "mp4,mkv,avi,mov",
Name = "Video",
SavePath = "%USERPROFILE%\\Downloads\\Video"
},
new
{
Id = 5,
Extensions = "jpg,jpeg,png,gif,webp",
Name = "Görsel",
SavePath = "%USERPROFILE%\\Downloads\\Görseller"
},
new
{
Id = 6,
Extensions = "",
Name = "Diğer",
SavePath = "%USERPROFILE%\\Downloads"
});
});
modelBuilder.Entity("DownloadManager.Core.Models.DownloadItem", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property<int>("CategoryId")
.HasColumnType("INTEGER");
b.Property<DateTime?>("CompletedAt")
.HasColumnType("TEXT");
b.Property<DateTime>("CreatedAt")
.HasColumnType("TEXT");
b.Property<long>("DownloadedBytes")
.HasColumnType("INTEGER");
b.Property<string>("ETag")
.HasColumnType("TEXT");
b.Property<string>("ErrorMessage")
.HasColumnType("TEXT");
b.Property<string>("FileName")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("LastModified")
.HasColumnType("TEXT");
b.Property<string>("PasswordHash")
.HasColumnType("TEXT");
b.Property<int>("Priority")
.HasColumnType("INTEGER");
b.Property<string>("Referrer")
.HasColumnType("TEXT");
b.Property<string>("SavePath")
.IsRequired()
.HasColumnType("TEXT");
b.Property<int>("SegmentCount")
.HasColumnType("INTEGER");
b.Property<string>("Sha256Checksum")
.HasColumnType("TEXT");
b.Property<DateTime?>("StartedAt")
.HasColumnType("TEXT");
b.Property<int>("Status")
.HasColumnType("INTEGER");
b.Property<long>("TotalSize")
.HasColumnType("INTEGER");
b.Property<string>("Url")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("UserAgent")
.HasColumnType("TEXT");
b.Property<string>("Username")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("CategoryId");
b.ToTable("Downloads");
});
modelBuilder.Entity("DownloadManager.Core.Models.DownloadSegment", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<Guid>("DownloadItemId")
.HasColumnType("TEXT");
b.Property<long>("Downloaded")
.HasColumnType("INTEGER");
b.Property<long>("EndByte")
.HasColumnType("INTEGER");
b.Property<int>("Index")
.HasColumnType("INTEGER");
b.Property<long>("StartByte")
.HasColumnType("INTEGER");
b.Property<int>("Status")
.HasColumnType("INTEGER");
b.Property<string>("TempFilePath")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("DownloadItemId");
b.ToTable("Segments");
});
modelBuilder.Entity("DownloadManager.Core.Models.GrabberProject", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("GrabberProjects");
});
modelBuilder.Entity("DownloadManager.Core.Models.ScheduleJob", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("ScheduleJobs");
});
modelBuilder.Entity("DownloadManager.Core.Models.DownloadItem", b =>
{
b.HasOne("DownloadManager.Core.Models.DownloadCategory", "Category")
.WithMany()
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Category");
});
modelBuilder.Entity("DownloadManager.Core.Models.DownloadSegment", b =>
{
b.HasOne("DownloadManager.Core.Models.DownloadItem", null)
.WithMany("Segments")
.HasForeignKey("DownloadItemId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("DownloadManager.Core.Models.DownloadItem", b =>
{
b.Navigation("Segments");
});
#pragma warning restore 612, 618
}
}
}