mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
parent
9ed6fd09a4
commit
385d206287
24 changed files with 255 additions and 82 deletions
|
@ -45,6 +45,16 @@ namespace Ombi.Store.Context
|
|||
optionsBuilder.UseSqlite("Data Source=Ombi.db");
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder builder)
|
||||
{
|
||||
builder.Entity<PlexEpisode>()
|
||||
.HasOne(p => p.Series)
|
||||
.WithMany(b => b.Episodes)
|
||||
.HasPrincipalKey(x => x.Key)
|
||||
.HasForeignKey(p => p.GrandparentKey);
|
||||
base.OnModelCreating(builder);
|
||||
}
|
||||
|
||||
|
||||
public void Seed()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue