Availability Checker #1464 #865

This commit is contained in:
Jamie.Rees 2017-08-24 16:15:39 +01:00
parent 9ed6fd09a4
commit 385d206287
24 changed files with 255 additions and 82 deletions

View file

@ -253,7 +253,7 @@ namespace Ombi.Store.Migrations
b.Property<DateTime>("AddedAt");
b.Property<string>("Key");
b.Property<int>("Key");
b.Property<string>("ProviderId");
@ -277,11 +277,11 @@ namespace Ombi.Store.Migrations
b.Property<int>("EpisodeNumber");
b.Property<string>("GrandparentKey");
b.Property<int>("GrandparentKey");
b.Property<string>("Key");
b.Property<int>("Key");
b.Property<string>("ParentKey");
b.Property<int>("ParentKey");
b.Property<int>("SeasonNumber");
@ -289,6 +289,8 @@ namespace Ombi.Store.Migrations
b.HasKey("Id");
b.HasIndex("GrandparentKey");
b.ToTable("PlexEpisode");
});
@ -567,6 +569,15 @@ namespace Ombi.Store.Migrations
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Ombi.Store.Entities.PlexEpisode", b =>
{
b.HasOne("Ombi.Store.Entities.PlexContent", "Series")
.WithMany("Episodes")
.HasForeignKey("GrandparentKey")
.HasPrincipalKey("Key")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Ombi.Store.Entities.PlexSeasonsContent", b =>
{
b.HasOne("Ombi.Store.Entities.PlexContent")