Huge cleanup and rework pass, postgres now usable too

This commit is contained in:
2018-02-19 23:57:14 -05:00
parent d996f7a2cb
commit a3a3c3a780
18 changed files with 472 additions and 110 deletions

View File

@ -8,7 +8,7 @@ namespace YTManager.Models {
public class Channel {
// Uniquie ID for this media type
[Key]
public long key { get; set; }
public long PrimaryKey { get; set; }
// Title of the media
[Required]
@ -24,7 +24,7 @@ namespace YTManager.Models {
// Youtube Channel ID
[Required]
public string YTChannelID { get; set; }
public string YoutubeID { get; set; }
// Added to this manager.
[Required]

View File

@ -10,16 +10,10 @@ namespace YTManager.Models
{
// Uniquie ID for this media type
[Key]
public long key { get; set; }
public long PrimaryKey { get; set; }
// Tag Name.
[Required]
public string Name { get; set; }
// Videos this tag applies to.
public List<Video> Videos { get; set; }
// Channels this tag applies to.
public List<Channel> Channels { get; set; }
}
}

View File

@ -8,7 +8,7 @@ namespace YTManager.Models {
public class Video {
// Uniquie ID for this media type
[Key]
public long key { get; set; }
public long PrimaryKey { get; set; }
// Title of the media
[Required]
@ -20,7 +20,7 @@ namespace YTManager.Models {
// Youtube Video ID
[Required]
public string YTVideoID { get; set; }
public string YoutubeID { get; set; }
// Thumbnail link
[Required]
@ -34,8 +34,8 @@ namespace YTManager.Models {
[Required]
public DateTime AddedtoDB { get; set; }
// Channel this video comes from.
// Tag this video applies to.
[Required]
public Channel channel;
public List<Tag> Tags;
}
}