feat: add database connections, initial migration and early CLI tooling
All checks were successful
Update changelog / changelog (push) Successful in 25s
All checks were successful
Update changelog / changelog (push) Successful in 25s
This commit is contained in:
14
Entities/Image.cs
Normal file
14
Entities/Image.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user