// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using RdtClient.Data.Data; namespace RdtClient.Data.Migrations { [DbContext(typeof(DataContext))] partial class DataContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.3"); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property("Id") .HasColumnType("TEXT"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("TEXT"); b.Property("Name") .HasColumnType("TEXT") .HasMaxLength(256); b.Property("NormalizedName") .HasColumnType("TEXT") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasName("RoleNameIndex"); b.ToTable("AspNetRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ClaimType") .HasColumnType("TEXT"); b.Property("ClaimValue") .HasColumnType("TEXT"); b.Property("RoleId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b => { b.Property("Id") .HasColumnType("TEXT"); b.Property("AccessFailedCount") .HasColumnType("INTEGER"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("TEXT"); b.Property("Email") .HasColumnType("TEXT") .HasMaxLength(256); b.Property("EmailConfirmed") .HasColumnType("INTEGER"); b.Property("LockoutEnabled") .HasColumnType("INTEGER"); b.Property("LockoutEnd") .HasColumnType("TEXT"); b.Property("NormalizedEmail") .HasColumnType("TEXT") .HasMaxLength(256); b.Property("NormalizedUserName") .HasColumnType("TEXT") .HasMaxLength(256); b.Property("PasswordHash") .HasColumnType("TEXT"); b.Property("PhoneNumber") .HasColumnType("TEXT"); b.Property("PhoneNumberConfirmed") .HasColumnType("INTEGER"); b.Property("SecurityStamp") .HasColumnType("TEXT"); b.Property("TwoFactorEnabled") .HasColumnType("INTEGER"); b.Property("UserName") .HasColumnType("TEXT") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasName("UserNameIndex"); b.ToTable("AspNetUsers"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ClaimType") .HasColumnType("TEXT"); b.Property("ClaimValue") .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.Property("LoginProvider") .HasColumnType("TEXT"); b.Property("ProviderKey") .HasColumnType("TEXT"); b.Property("ProviderDisplayName") .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.Property("UserId") .HasColumnType("TEXT"); b.Property("RoleId") .HasColumnType("TEXT"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.Property("UserId") .HasColumnType("TEXT"); b.Property("LoginProvider") .HasColumnType("TEXT"); b.Property("Name") .HasColumnType("TEXT"); b.Property("Value") .HasColumnType("TEXT"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens"); }); modelBuilder.Entity("RdtClient.Data.Models.Data.Download", b => { b.Property("DownloadId") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Added") .HasColumnType("TEXT"); b.Property("Link") .HasColumnType("TEXT"); b.Property("Status") .HasColumnType("INTEGER"); b.Property("TorrentId") .HasColumnType("TEXT"); b.HasKey("DownloadId"); b.HasIndex("TorrentId"); b.ToTable("Downloads"); }); modelBuilder.Entity("RdtClient.Data.Models.Data.Setting", b => { b.Property("SettingId") .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("TEXT"); b.Property("Value") .HasColumnType("TEXT"); b.HasKey("SettingId"); b.ToTable("Settings"); b.HasData( new { SettingId = "RealDebridApiKey", Type = "String", Value = "" }, new { SettingId = "DownloadFolder", Type = "String", Value = "C:\\Downloads" }, new { SettingId = "DownloadLimit", Type = "Int32", Value = "10" }); }); modelBuilder.Entity("RdtClient.Data.Models.Data.Torrent", b => { b.Property("TorrentId") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("AutoDelete") .HasColumnType("INTEGER"); b.Property("AutoDownload") .HasColumnType("INTEGER"); b.Property("Category") .HasColumnType("TEXT"); b.Property("Hash") .HasColumnType("TEXT"); b.Property("RdAdded") .HasColumnType("TEXT"); b.Property("RdEnded") .HasColumnType("TEXT"); b.Property("RdFiles") .HasColumnType("TEXT"); b.Property("RdHost") .HasColumnType("TEXT"); b.Property("RdId") .HasColumnType("TEXT"); b.Property("RdName") .HasColumnType("TEXT"); b.Property("RdProgress") .HasColumnType("INTEGER"); b.Property("RdSeeders") .HasColumnType("INTEGER"); b.Property("RdSize") .HasColumnType("INTEGER"); b.Property("RdSpeed") .HasColumnType("INTEGER"); b.Property("RdSplit") .HasColumnType("INTEGER"); b.Property("RdStatus") .HasColumnType("TEXT"); b.Property("Status") .HasColumnType("INTEGER"); b.HasKey("TorrentId"); b.ToTable("Torrents"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); modelBuilder.Entity("RdtClient.Data.Models.Data.Download", b => { b.HasOne("RdtClient.Data.Models.Data.Torrent", "Torrent") .WithMany("Downloads") .HasForeignKey("TorrentId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); }); #pragma warning restore 612, 618 } } }