Files
Radicade/Server/RecNet/DB/PlaylistDB.cs
T
2026-10-16 23:33:13 -07:00

30 lines
613 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RadicadeServer.RecNet.DB
{
public class PlaylistDB
{
[Key]
public long PlaylistId { get; set; }
public string Keywords { get; set; } = string.Empty;
public string[] GetKeywords()
{
return Keywords.Split(',', StringSplitOptions.TrimEntries);
}
}
public class TagDB
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long TagId { get; set; }
public string Tag { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
}
}