Change id types (#114)

* Change id types

* Updated more models

* Saving changes

* Should be it
This commit was merged in pull request #114.
This commit is contained in:
KD
2025-04-03 21:13:05 -04:00
committed by GitHub
parent 12c4f56a22
commit 8abb196e1d
29 changed files with 147 additions and 37 deletions
+8 -6
View File
@@ -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")]
@@ -39,17 +41,17 @@ public class Song
[JsonProperty("disc_count")]
public int DiscCount { get; set; } = 0;
[JsonIgnore]
public int? AlbumId { get; set; }
public Guid? AlbumId { get; set; }
[JsonIgnore]
public int? ArtistId { get; set; }
public Guid? ArtistId { get; set; }
[JsonIgnore]
public int? GenreId { get; set; }
public Guid? GenreId { get; set; }
[JsonIgnore]
public int? CoverArtId { get; set; }
public Guid? CoverArtId { get; set; }
[JsonProperty("date_created")]
public DateTime DateCreated { get; set; }
[JsonProperty("user_id")]
public int UserId { get; set; }
public Guid UserId { get; set; }
#endregion