mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
History VIew Added.
Fixed Relationships between History and Episode/Indexer. Indexer now uses int as ID, string caused issues. Get single Indexer by ID.
This commit is contained in:
parent
4f2f5a3d71
commit
33b09567ce
14 changed files with 1704 additions and 48 deletions
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Script.Serialization;
|
||||
using NzbDrone.Core.Model;
|
||||
using SubSonic.SqlGeneration.Schema;
|
||||
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using NzbDrone.Core.Repository.Quality;
|
||||
using SubSonic.SqlGeneration.Schema;
|
||||
|
||||
|
@ -9,9 +6,10 @@ namespace NzbDrone.Core.Repository
|
|||
{
|
||||
public class History
|
||||
{
|
||||
public int HistoryId { get; set; }
|
||||
[SubSonicPrimaryKey(true)]
|
||||
public virtual int HistoryId { get; set; }
|
||||
public virtual int EpisodeId { get; set; }
|
||||
public virtual string IndexerName { get; set; }
|
||||
public virtual int IndexerId { get; set; }
|
||||
public string NzbTitle { get; set; }
|
||||
public QualityTypes Quality { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
|
|
|
@ -10,7 +10,9 @@ namespace NzbDrone.Core.Repository
|
|||
{
|
||||
public class Indexer
|
||||
{
|
||||
[SubSonicPrimaryKey(true)]
|
||||
[SubSonicPrimaryKey(false)]
|
||||
public virtual int IndexerId { get; set; }
|
||||
|
||||
public string IndexerName { get; set; }
|
||||
public string RssUrl { get; set; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue