Files
Shadow/Entities/Image.cs
sherl eebc5f1d6d fix: remove required from entities' id
also adds "Global" entity for storing global configuration
2025-12-16 04:01:45 +01:00

16 lines
369 B
C#

namespace Shadow.Entities;
public class Image
{
public int Id { get; set; }
required public string Uri { get; set; }
required public string Filetype { 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;
}