2010-10-04 23:21:18 -07:00
|
|
|
using System;
|
2010-10-24 00:46:58 -07:00
|
|
|
using System.Collections.Generic;
|
2011-02-18 08:36:50 -08:00
|
|
|
using NzbDrone.Core.Model;
|
2010-10-04 23:21:18 -07:00
|
|
|
using SubSonic.SqlGeneration.Schema;
|
|
|
|
|
2010-10-20 18:49:23 -07:00
|
|
|
namespace NzbDrone.Core.Repository
|
2010-10-04 23:21:18 -07:00
|
|
|
{
|
2010-10-20 18:49:23 -07:00
|
|
|
public class Episode
|
2010-10-04 23:21:18 -07:00
|
|
|
{
|
|
|
|
[SubSonicPrimaryKey(false)]
|
|
|
|
public virtual int EpisodeId { get; set; }
|
2010-10-20 18:49:23 -07:00
|
|
|
public virtual int SeriesId { get; set; }
|
2011-02-23 16:40:11 -08:00
|
|
|
public virtual int EpisodeFileId { get; set; }
|
2011-02-24 17:18:22 -08:00
|
|
|
public virtual int SeasonId { get; set; }
|
2010-10-20 18:49:23 -07:00
|
|
|
public int SeasonNumber { get; set; }
|
|
|
|
public int EpisodeNumber { get; set; }
|
2010-10-04 23:21:18 -07:00
|
|
|
public string Title { get; set; }
|
|
|
|
public DateTime AirDate { get; set; }
|
2011-01-28 22:10:22 -08:00
|
|
|
[SubSonicLongString]
|
2010-10-04 23:21:18 -07:00
|
|
|
public string Overview { get; set; }
|
|
|
|
public string Language { get; set; }
|
2011-02-18 08:36:50 -08:00
|
|
|
public EpisodeStatusType Status { get; set; }
|
2010-10-20 18:49:23 -07:00
|
|
|
|
2011-03-31 23:36:34 -07:00
|
|
|
public DayOfWeek? LastInfoSync { get; set; }
|
|
|
|
|
|
|
|
public DayOfWeek? LastDiskSync { get; set; }
|
|
|
|
|
2010-10-04 23:21:18 -07:00
|
|
|
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
|
|
|
|
public virtual Season Season { get; set; }
|
2010-10-11 19:49:27 -07:00
|
|
|
|
|
|
|
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
|
2010-10-20 18:49:23 -07:00
|
|
|
public virtual Series Series { get; private set; }
|
2010-10-24 00:46:58 -07:00
|
|
|
|
2011-02-21 22:12:53 -08:00
|
|
|
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
|
|
|
|
public virtual EpisodeFile EpisodeFile { get; private set; }
|
2011-01-28 22:10:22 -08:00
|
|
|
|
|
|
|
[SubSonicToManyRelation]
|
|
|
|
public virtual List<History> Histories { get; private set; }
|
2010-10-04 23:21:18 -07:00
|
|
|
}
|
|
|
|
}
|