Model and migration changes

This commit is contained in:
kdeng00
2024-06-20 17:12:10 -04:00
parent 5c913869b4
commit f3eccfd46e
32 changed files with 111 additions and 123 deletions
+2 -2
View File
@@ -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
View File
@@ -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; }
+1 -1
View File
@@ -5,7 +5,7 @@ namespace Icarus.Models;
public class CoverArt
{
#region Properties
[JsonProperty("cover_art_id")]
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("title")]
public string SongTitle { get; set; }
+2 -2
View File
@@ -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; }
+1 -1
View File
@@ -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")]
+6 -6
View File
@@ -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; }
[JsonProperty("date_created")]
public DateTime DateCreated { get; set; }
[JsonProperty("user_id")]
public int UserID { get; set; }
public int UserId { get; set; }
#endregion
+3 -3
View File
@@ -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")]