Files
icarus/Models/Artist.cs
T
KD 8abb196e1d Change id types (#114)
* Change id types

* Updated more models

* Saving changes

* Should be it
2025-04-03 21:13:05 -04:00

22 lines
454 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Icarus.Models;
public class Artist
{
#region Properties
[JsonProperty("id")]
[Key]
public Guid Id { get; set; }
[JsonProperty("name")]
[Column("Artist")]
public string? Name { get; set; }
[JsonProperty("song_count")]
[NotMapped]
public int SongCount { get; set; }
#endregion
}