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:
Mark McDowall 2011-03-22 22:19:23 -07:00
commit 33b09567ce
14 changed files with 1704 additions and 48 deletions

View file

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Web.Script.Serialization;
using NzbDrone.Core.Model;
using SubSonic.SqlGeneration.Schema;

View file

@ -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; }

View file

@ -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; }