mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1244 lines
41 KiB
1244 lines
41 KiB
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Ombi.Store.Context.Sqlite;
|
|
|
|
namespace Ombi.Store.Migrations.OmbiSqlite
|
|
{
|
|
[DbContext(typeof(OmbiSqliteContext))]
|
|
[Migration("20210922091550_UserRequestLimits_Pt2")]
|
|
partial class UserRequestLimits_Pt2
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "5.0.1");
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NormalizedName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedName")
|
|
.IsUnique()
|
|
.HasDatabaseName("RoleNameIndex");
|
|
|
|
b.ToTable("AspNetRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoleId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetRoleClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserClaims");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
{
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("LoginProvider", "ProviderKey");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserLogins");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoleId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetUserRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
b.ToTable("AspNetUserTokens");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Audit", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AuditArea")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AuditType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("DateTime")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("User")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Audit");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.MobileDevices", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("AddedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Token")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("MobileDevices");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.NotificationTemplates", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Agent")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Message")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("NotificationType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Subject")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("NotificationTemplates");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.NotificationUserId", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("AddedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PlayerId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("NotificationUserId");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.OmbiUser", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Alias")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("EpisodeRequestLimit")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("EpisodeRequestLimitType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Language")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("LastLoggedIn")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("MovieRequestLimit")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("MovieRequestLimitType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("MusicRequestLimit")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("MusicRequestLimitType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ProviderUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("StreamingCountry")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UserAccessToken")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("UserType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
.HasDatabaseName("EmailIndex");
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
.IsUnique()
|
|
.HasDatabaseName("UserNameIndex");
|
|
|
|
b.ToTable("AspNetUsers");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.RecentlyAddedLog", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("AddedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("AlbumId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ContentId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ContentType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("EpisodeNumber")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("SeasonNumber")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("RecentlyAddedLog");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.RequestQueue", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("Completed")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("Dts")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Error")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RequestId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RetryCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("RequestQueue");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.RequestSubscription", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RequestId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RequestType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("RequestSubscription");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.AlbumRequest", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Approved")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ArtistName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Available")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Cover")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool?>("Denied")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DeniedReason")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Disk")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ForeignAlbumId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ForeignArtistId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("MarkedAsApproved")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("MarkedAsAvailable")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("MarkedAsDenied")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("Rating")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("ReleaseDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RequestType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RequestedByAlias")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("RequestedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RequestedUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RequestedUserId");
|
|
|
|
b.ToTable("AlbumRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.ChildRequests", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Approved")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Available")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool?>("Denied")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DeniedReason")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("IssueId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("MarkedAsApproved")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("MarkedAsAvailable")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("MarkedAsDenied")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ParentRequestId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RequestType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RequestedByAlias")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("RequestedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RequestedUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("SeriesType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ParentRequestId");
|
|
|
|
b.HasIndex("RequestedUserId");
|
|
|
|
b.ToTable("ChildRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.IssueCategory", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("IssueCategory");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.IssueComments", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Comment")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("IssuesId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("IssuesId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("IssueComments");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.Issues", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("IssueCategoryId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("IssueId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ProviderId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("RequestId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RequestType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("ResovledDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Subject")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserReportedId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("IssueCategoryId");
|
|
|
|
b.HasIndex("IssueId");
|
|
|
|
b.HasIndex("UserReportedId");
|
|
|
|
b.ToTable("Issues");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.MovieRequests", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Approved")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Available")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Background")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool?>("Denied")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("DeniedReason")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("DigitalReleaseDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ImdbId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("IssueId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("LangCode")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("MarkedAsApproved")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("MarkedAsAvailable")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("MarkedAsDenied")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Overview")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PosterPath")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("QualityOverride")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("ReleaseDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RequestType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RequestedByAlias")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("RequestedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RequestedUserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RootPathOverride")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Status")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("TheMovieDbId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RequestedUserId");
|
|
|
|
b.ToTable("MovieRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.RequestLog", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("EpisodeCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("RequestDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RequestId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RequestType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("RequestLog");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.TvRequests", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Background")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ExternalProviderId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ImdbId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("LanguageProfile")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Overview")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PosterPath")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("QualityOverride")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("ReleaseDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("RootFolder")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Status")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("TotalSeasons")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("TvDbId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("TvRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Tokens", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Token")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Tokens");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.UserNotificationPreferences", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Agent")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("UserNotificationPreferences");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.UserQualityProfiles", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RadarrQualityProfile")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RadarrRootPath")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SonarrQualityProfile")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SonarrQualityProfileAnime")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SonarrRootPath")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SonarrRootPathAnime")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("UserQualityProfiles");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Votes", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Deleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RequestId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RequestType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("VoteType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Votes");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Repository.Requests.EpisodeRequests", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("AirDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Approved")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Available")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("EpisodeNumber")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Requested")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("SeasonId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Url")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SeasonId");
|
|
|
|
b.ToTable("EpisodeRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Repository.Requests.SeasonRequests", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ChildRequestId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Overview")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("SeasonNumber")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ChildRequestId");
|
|
|
|
b.ToTable("SeasonRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.MobileDevices", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.NotificationUserId", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "User")
|
|
.WithMany("NotificationUserIds")
|
|
.HasForeignKey("UserId");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.RequestSubscription", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.AlbumRequest", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "RequestedUser")
|
|
.WithMany()
|
|
.HasForeignKey("RequestedUserId");
|
|
|
|
b.Navigation("RequestedUser");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.ChildRequests", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.Requests.TvRequests", "ParentRequest")
|
|
.WithMany("ChildRequests")
|
|
.HasForeignKey("ParentRequestId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "RequestedUser")
|
|
.WithMany()
|
|
.HasForeignKey("RequestedUserId");
|
|
|
|
b.Navigation("ParentRequest");
|
|
|
|
b.Navigation("RequestedUser");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.IssueComments", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.Requests.Issues", "Issues")
|
|
.WithMany("Comments")
|
|
.HasForeignKey("IssuesId");
|
|
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId");
|
|
|
|
b.Navigation("Issues");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.Issues", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.Requests.IssueCategory", "IssueCategory")
|
|
.WithMany()
|
|
.HasForeignKey("IssueCategoryId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Ombi.Store.Entities.Requests.ChildRequests", null)
|
|
.WithMany("Issues")
|
|
.HasForeignKey("IssueId");
|
|
|
|
b.HasOne("Ombi.Store.Entities.Requests.MovieRequests", null)
|
|
.WithMany("Issues")
|
|
.HasForeignKey("IssueId");
|
|
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "UserReported")
|
|
.WithMany()
|
|
.HasForeignKey("UserReportedId");
|
|
|
|
b.Navigation("IssueCategory");
|
|
|
|
b.Navigation("UserReported");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.MovieRequests", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "RequestedUser")
|
|
.WithMany()
|
|
.HasForeignKey("RequestedUserId");
|
|
|
|
b.Navigation("RequestedUser");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.RequestLog", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Tokens", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.UserNotificationPreferences", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "User")
|
|
.WithMany("UserNotificationPreferences")
|
|
.HasForeignKey("UserId");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.UserQualityProfiles", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Votes", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.OmbiUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Repository.Requests.EpisodeRequests", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Repository.Requests.SeasonRequests", "Season")
|
|
.WithMany("Episodes")
|
|
.HasForeignKey("SeasonId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Season");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Repository.Requests.SeasonRequests", b =>
|
|
{
|
|
b.HasOne("Ombi.Store.Entities.Requests.ChildRequests", "ChildRequest")
|
|
.WithMany("SeasonRequests")
|
|
.HasForeignKey("ChildRequestId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ChildRequest");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.OmbiUser", b =>
|
|
{
|
|
b.Navigation("NotificationUserIds");
|
|
|
|
b.Navigation("UserNotificationPreferences");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.ChildRequests", b =>
|
|
{
|
|
b.Navigation("Issues");
|
|
|
|
b.Navigation("SeasonRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.Issues", b =>
|
|
{
|
|
b.Navigation("Comments");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.MovieRequests", b =>
|
|
{
|
|
b.Navigation("Issues");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Entities.Requests.TvRequests", b =>
|
|
{
|
|
b.Navigation("ChildRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("Ombi.Store.Repository.Requests.SeasonRequests", b =>
|
|
{
|
|
b.Navigation("Episodes");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|