Datenstruktur angepasst
This commit is contained in:
1 parent
89f5d51580
commit
205fb71316
15 files changed
+673
-686
No files matched your search
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace songrequests_blazor.Data
|
||||
{
|
||||
public class Library
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = null!;
|
||||
public List<Song>? Songs { get; set; }
|
||||
public LibraryType Type { get; set; }
|
||||
|
||||
[Column("Sessions_ID")]
|
||||
public virtual List<Session>? UsedInSessions { get; set; }
|
||||
|
||||
public enum LibraryType
|
||||
{
|
||||
Local,
|
||||
Spotify
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user