mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Started on custom quality profiles and root paths !wip
This commit is contained in:
parent
afdd80ac72
commit
68c4368490
8 changed files with 235 additions and 52 deletions
|
@ -51,7 +51,8 @@ namespace Ombi.Store.Context
|
|||
public DbSet<SickRageCache> SickRageCache { get; set; }
|
||||
public DbSet<SickRageEpisodeCache> SickRageEpisodeCache { get; set; }
|
||||
public DbSet<RequestSubscription> RequestSubscription { get; set; }
|
||||
|
||||
public DbSet<UserNotificationPreferences> UserNotificationPreferences { get; set; }
|
||||
public DbSet<UserQualityProfiles> UserQualityProfileses { get; set; }
|
||||
public DbSet<ApplicationConfiguration> ApplicationConfigurations { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
|
|
23
src/Ombi.Store/Entities/UserQualityProfiles.cs
Normal file
23
src/Ombi.Store/Entities/UserQualityProfiles.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using Ombi.Helpers;
|
||||
|
||||
namespace Ombi.Store.Entities
|
||||
{
|
||||
[Table(nameof(UserQualityProfiles))]
|
||||
public class UserQualityProfiles : Entity
|
||||
{
|
||||
public string UserId { get; set; }
|
||||
|
||||
public int SonarrQualityProfileAnime { get; set; }
|
||||
public int SonarrRootPathAnime { get; set; }
|
||||
public int SonarrRootPath { get; set; }
|
||||
public int SonarrQualityProfile { get; set; }
|
||||
public int RadarrRootPath { get; set; }
|
||||
public int RadarrQualityProfile { get; set; }
|
||||
|
||||
[ForeignKey(nameof(UserId))]
|
||||
[JsonIgnore]
|
||||
public OmbiUser User { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue