initial commit

This commit is contained in:
2026-06-03 20:24:57 -07:00
commit e2ad15fa64
37 changed files with 3092 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
namespace lxc_songlist.Models;
public sealed class SiteSetting
{
public string Key { get; set; } = string.Empty;
public string Value { get; set; } = string.Empty;
public DateTimeOffset UpdatedAt { get; set; } = DateTimeOffset.UtcNow;
}
+13
View File
@@ -0,0 +1,13 @@
namespace lxc_songlist.Models;
public sealed class Song
{
public int Id { get; set; }
public string Title { get; set; } = string.Empty;
public string NormalizedTitle { get; set; } = string.Empty;
public bool IsHidden { get; set; }
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
public DateTimeOffset UpdatedAt { get; set; } = DateTimeOffset.UtcNow;
public ICollection<SongTag> SongTags { get; set; } = new List<SongTag>();
}
+13
View File
@@ -0,0 +1,13 @@
namespace lxc_songlist.Models;
public sealed class SongTag
{
public int SongId { get; set; }
public Song Song { get; set; } = null!;
public int TagId { get; set; }
public Tag Tag { get; set; } = null!;
public bool CreatedByViewer { get; set; }
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
}
+11
View File
@@ -0,0 +1,11 @@
namespace lxc_songlist.Models;
public sealed class Tag
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string NormalizedName { get; set; } = string.Empty;
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
public ICollection<SongTag> SongTags { get; set; } = new List<SongTag>();
}