rdt-client/server/RdtClient.Data/Models/Data/Download.cs
2020-04-07 12:08:17 -06:00

36 lines
820 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using RdtClient.Data.Enums;
namespace RdtClient.Data.Models.Data
{
public class Download
{
[Key]
public Guid DownloadId { get; set; }
public Guid TorrentId { get; set; }
public String Link { get; set; }
public DateTimeOffset Added { get; set; }
public DownloadStatus Status { get; set; }
[ForeignKey("TorrentId")]
public Torrent Torrent { get; set; }
[NotMapped]
public Int32 Progress { get; set; }
[NotMapped]
public Int64 Speed { get; set; }
[NotMapped]
public DateTime NextUpdate { get; set; }
[NotMapped]
public Int64 BytesLastUpdate { get; set; }
}
}