BackEnd/YTManager/Models/Video.cs
2018-02-17 20:29:25 -05:00

42 lines
998 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
namespace YTManager.Models {
public class Video {
// Uniquie ID for this media type
[Key]
public long key { get; set; }
// Title of the media
[Required]
public string Title { get; set; }
// Short description of the media
[Required]
public string Description { get; set; }
// Youtube Video ID
[Required]
public string YTVideoID { get; set; }
// Thumbnail link
[Required]
public string ThumbnailURL { get; set; }
// Date video was uploaded to YT
[Required]
public DateTime AddedToYT { get; set; }
// Date added to database
[Required]
public DateTime AddedtoDB { get; set; }
// Channel this video comes from.
[Required]
public Channel channel;
}
}