initial commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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>();
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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>();
|
||||
}
|
||||
Reference in New Issue
Block a user