20 lines
553 B
C#
20 lines
553 B
C#
using FictionArchive.Service.Shared.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace FictionArchive.Service.UserService.Models.Database;
|
|
|
|
[Index(nameof(OAuthProviderId), IsUnique = true)]
|
|
public class User : BaseEntity<Guid>
|
|
{
|
|
public string Username { get; set; }
|
|
public string Email { get; set; }
|
|
public string OAuthProviderId { get; set; }
|
|
|
|
|
|
public bool Disabled { get; set; }
|
|
|
|
/// <summary>
|
|
/// The user that generated an invite used by this user.
|
|
/// </summary>
|
|
public User? Inviter { get; set; }
|
|
} |