8abb196e1d
* Change id types * Updated more models * Saving changes * Should be it
26 lines
596 B
C#
26 lines
596 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Icarus.Models;
|
|
|
|
public class Album
|
|
{
|
|
#region Properties
|
|
[JsonProperty("id")]
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
[JsonProperty("title")]
|
|
public string? Title { get; set; }
|
|
[JsonProperty("album_artist")]
|
|
[Column("Artist")]
|
|
public string? AlbumArtist { get; set; }
|
|
[JsonProperty("song_count")]
|
|
[NotMapped]
|
|
public int SongCount { get; set; }
|
|
[JsonProperty("year")]
|
|
public int Year { get; set; }
|
|
#endregion
|
|
}
|