19 lines
765 B
C#
Raw Normal View History

2024-02-04 01:03:43 -05:00
using System.Text.Json.Serialization;
using Microsoft.EntityFrameworkCore;
namespace comissions.app.database.Entities;
[PrimaryKey(nameof(Id))]
public record User
{
public string Id { get; set; }
public string DisplayName { get; set; } = null!;
public string Biography { get; set; } = null!;
public string Email { get; set; } = null!;
2024-03-09 22:32:33 -05:00
public int? UserArtistId { get; set; }
2024-02-19 04:50:48 -05:00
[JsonIgnore] public virtual UserArtist? UserArtist { get; set; }
2024-03-09 22:32:33 -05:00
[JsonIgnore] public virtual ICollection<Request> Requests { get; set; } = new List<Request>();
[JsonIgnore] public virtual ICollection<Suspension> Suspensions { get; set; } = new List<Suspension>();
[JsonIgnore] public virtual ICollection<Ban> Bans { get; set; } = new List<Ban>();
2024-02-04 01:03:43 -05:00
}