feat: add database connections, initial migration and early CLI tooling
All checks were successful
Update changelog / changelog (push) Successful in 25s

This commit is contained in:
2025-12-09 01:46:05 +01:00
parent ad3cd6710d
commit f648a73cb2
26 changed files with 2399 additions and 52 deletions

16
Entities/Album.cs Normal file
View File

@@ -0,0 +1,16 @@
namespace Shadow.Entities;
public class Album
{
required public int Id { get; set; }
public required string Name { get; set; }
public required string Uri { get; set; }
public int State { get; set; } = 0;
public int? ArtistId { get; set; } = null;
public Artist? Artist { get; set; } = null;
public List<Song> Songs { get; set; } = [];
public bool IsOk() => State == 0;
public bool IsOrphaned() => State == 1;
public bool IsArchived() => State == 2;
}