Huge cleanup and rework pass, postgres now usable too
This commit is contained in:
@ -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]
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user