* #95: Updated Id of the CoverArt model * Model and migration changes
This commit was merged in pull request #99.
This commit is contained in:
+2
-2
@@ -6,8 +6,8 @@ namespace Icarus.Models;
|
||||
|
||||
public class Album
|
||||
{
|
||||
[JsonProperty("album_id")]
|
||||
public int AlbumID { get; set; }
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonProperty("album_artist")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ namespace Icarus.Models;
|
||||
|
||||
public class Artist
|
||||
{
|
||||
[JsonProperty("artist_id")]
|
||||
public int ArtistID { get; set; }
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[JsonProperty("name")]
|
||||
[Column("Artist")]
|
||||
public string Name { get; set; }
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ namespace Icarus.Models;
|
||||
public class CoverArt
|
||||
{
|
||||
#region Properties
|
||||
[JsonProperty("cover_art_id")]
|
||||
public int CoverArtID { get; set; }
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[JsonProperty("title")]
|
||||
public string SongTitle { get; set; }
|
||||
[JsonIgnore]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ namespace Icarus.Models;
|
||||
|
||||
public class Genre
|
||||
{
|
||||
[JsonProperty("genre_id")]
|
||||
public int GenreID { get; set; }
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[JsonProperty("genre")]
|
||||
[Column("Category")]
|
||||
public string GenreName { get; set; }
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Icarus.Models;
|
||||
public class LoginResult : BaseResult
|
||||
{
|
||||
[JsonProperty("user_id")]
|
||||
public int UserID { get; set; }
|
||||
public int UserId { get; set; }
|
||||
[JsonProperty("username")]
|
||||
public string Username { get; set; }
|
||||
[JsonProperty("token")]
|
||||
|
||||
+7
-7
@@ -7,8 +7,8 @@ namespace Icarus.Models;
|
||||
public class Song
|
||||
{
|
||||
#region Properties
|
||||
[JsonProperty("song_id")]
|
||||
public int SongID { get; set; }
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
[JsonProperty("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonProperty("album")]
|
||||
@@ -37,17 +37,17 @@ public class Song
|
||||
[JsonProperty("disc_count")]
|
||||
public int DiscCount { get; set; } = 0;
|
||||
[JsonIgnore]
|
||||
public int? AlbumID { get; set; }
|
||||
public int? AlbumId { get; set; }
|
||||
[JsonIgnore]
|
||||
public int? ArtistID { get; set; }
|
||||
public int? ArtistId { get; set; }
|
||||
[JsonIgnore]
|
||||
public int? GenreID { get; set; }
|
||||
public int? GenreId { get; set; }
|
||||
[JsonIgnore]
|
||||
public int? CoverArtID { get; set; }
|
||||
public int? CoverArtId { get; set; }
|
||||
[JsonProperty("date_created")]
|
||||
public DateTime DateCreated { get; set; }
|
||||
[JsonProperty("user_id")]
|
||||
public int UserID { get; set; }
|
||||
public int UserId { get; set; }
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
+3
-3
@@ -9,10 +9,10 @@ namespace Icarus.Models;
|
||||
public class User
|
||||
{
|
||||
#region Properties
|
||||
[JsonProperty("user_id")]
|
||||
[Column("UserID")]
|
||||
[JsonProperty("id")]
|
||||
[Column("Id")]
|
||||
[Key]
|
||||
public int UserID { get; set; }
|
||||
public int Id { get; set; }
|
||||
[JsonProperty("username")]
|
||||
public string Username { get; set; }
|
||||
[JsonProperty("password")]
|
||||
|
||||
Reference in New Issue
Block a user