Updated more models
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Icarus.Models;
|
||||
@@ -6,7 +7,7 @@ public class AccessLevel
|
||||
{
|
||||
#region Properties
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
public Guid Id { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("level")]
|
||||
public string? Level { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("song_id")]
|
||||
|
||||
+3
-1
@@ -1,3 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
@@ -8,7 +9,8 @@ public class Album
|
||||
{
|
||||
#region Properties
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
[JsonProperty("album_artist")]
|
||||
|
||||
+3
-1
@@ -1,3 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
@@ -8,7 +9,8 @@ public class Artist
|
||||
{
|
||||
#region Properties
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
[JsonProperty("name")]
|
||||
[Column("Artist")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
+4
-1
@@ -1,3 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Icarus.Models;
|
||||
@@ -6,7 +8,8 @@ public class CoverArt
|
||||
{
|
||||
#region Properties
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
[JsonProperty("title")]
|
||||
public string? SongTitle { get; set; }
|
||||
[JsonIgnore]
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
namespace Icarus.Models;
|
||||
|
||||
public enum CreateFileResult
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
@@ -8,7 +9,7 @@ public class Genre
|
||||
{
|
||||
#region Properties
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
public Guid Id { get; set; }
|
||||
[JsonProperty("genre")]
|
||||
[Column("Category")]
|
||||
public string? GenreName { get; set; }
|
||||
|
||||
+3
-1
@@ -1,3 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
@@ -8,7 +9,8 @@ public class Song
|
||||
{
|
||||
#region Properties
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
[JsonProperty("title")]
|
||||
public string? Title { get; set; }
|
||||
[JsonProperty("album")]
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ namespace Icarus.Models;
|
||||
public class SongData
|
||||
{
|
||||
#region Properties
|
||||
public int ID { get; set; }
|
||||
public Guid ID { get; set; }
|
||||
public byte[]? Data { get; set; }
|
||||
public int SongID { get; set; }
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user