HUGE arch changes to make searching work right

This commit is contained in:
2018-03-05 01:08:55 -05:00
parent 96a26ce30d
commit 9f5fb78835
32 changed files with 800 additions and 447 deletions

View File

@ -33,6 +33,11 @@ namespace YTManager.Models {
public DateTime Refreshed { get; set; }
// Videos this channel has.
[Required]
public List<Video> Videos { get; set; }
// Tags attached to this channel by user.
[Required]
public string[] UserTags { get; set; }
}
}

View File

@ -1,15 +0,0 @@
using System.ComponentModel.DataAnnotations;
namespace YTManager.Models
{
public class Tag
{
// Uniquie ID for this media type
[Key]
public long PrimaryKey { get; set; }
// Tag Name.
[Required]
public string Name { get; set; }
}
}

View File

@ -42,6 +42,6 @@ namespace YTManager.Models {
// Tag this video applies to.
[Required]
public List<Tag> Tags { get; set; }
public string[] Tags { get; set; }
}
}