diff --git a/YTManager/MediaDB.cs b/YTManager/MediaDB.cs index 51b956c..8489df7 100644 --- a/YTManager/MediaDB.cs +++ b/YTManager/MediaDB.cs @@ -10,6 +10,7 @@ namespace YTManager { public DbSet Channels { get; set; } public DbSet Videos { get; set; } + public DbSet Tags { get; set; } public MediaDB(DbContextOptions options) :base(options){ } diff --git a/YTManager/Models/Tag.cs b/YTManager/Models/Tag.cs new file mode 100644 index 0000000..a481eb4 --- /dev/null +++ b/YTManager/Models/Tag.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.ComponentModel.DataAnnotations; + +namespace YTManager.Models +{ + public class Tag + { + // Uniquie ID for this media type + [Key] + public long key { get; set; } + + // Tag Name. + [Required] + public string Name { get; set; } + + // Videos this tag applies to. + public List