Files
Shadow/Entities/Image.cs
sherl f648a73cb2
All checks were successful
Update changelog / changelog (push) Successful in 25s
feat: add database connections, initial migration and early CLI tooling
2025-12-09 01:46:05 +01:00

15 lines
331 B
C#

namespace Shadow.Entities;
public class Image
{
required public int Id { get; set; }
required public string Uri { get; set; }
public int State { get; set; }
public int? SongId { get; set; } = null;
public Song? Song { get; set; } = null;
public bool IsAvailable() => State == 0;
public bool IsOrphaned() => State == 1;
}