BackEnd/YTManager/Models/Video.cs

44 lines
1.0 KiB
C#
Raw Normal View History

2017-09-01 08:55:02 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace YTManager.Models {
public class Video {
// Uniquie ID for this media type
[Key]
public long PrimaryKey { get; set; }
2017-09-01 08:55:02 +00:00
// 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 YoutubeID { get; set; }
2017-09-01 08:55:02 +00:00
// Thumbnail link
[Required]
public string ThumbnailURL { get; set; }
// Date video was uploaded to YT
[Required]
2018-02-18 01:29:25 +00:00
public DateTime AddedToYT { get; set; }
2017-09-01 08:55:02 +00:00
// Date added to database
[Required]
public DateTime AddedtoDB { get; set; }
// What channel this video comes from.
[Required]
public Channel channel;
// Tag this video applies to.
2018-02-18 01:29:25 +00:00
[Required]
public List<Tag> Tags;
2017-09-01 08:55:02 +00:00
}
}