2024-05-27 15:53:54 +02:00
|
|
|
namespace Foxnouns.Backend.Database.Models;
|
|
|
|
|
|
|
|
public class User : BaseModel
|
|
|
|
{
|
|
|
|
public required string Username { get; set; }
|
|
|
|
public string? DisplayName { get; set; }
|
|
|
|
public string? Bio { get; set; }
|
|
|
|
public string? MemberTitle { get; set; }
|
|
|
|
public string? Avatar { get; set; }
|
|
|
|
public string[] Links { get; set; } = [];
|
2024-05-28 17:09:50 +02:00
|
|
|
public bool ListHidden { get; set; }
|
2024-05-27 15:53:54 +02:00
|
|
|
|
|
|
|
public List<FieldEntry> Names { get; set; } = [];
|
|
|
|
public List<Pronoun> Pronouns { get; set; } = [];
|
|
|
|
public List<Field> Fields { get; set; } = [];
|
|
|
|
|
|
|
|
public UserRole Role { get; set; } = UserRole.User;
|
|
|
|
|
|
|
|
public List<Member> Members { get; } = [];
|
|
|
|
public List<AuthMethod> AuthMethods { get; } = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
public enum UserRole
|
|
|
|
{
|
|
|
|
User,
|
|
|
|
Moderator,
|
|
|
|
Admin,
|
|
|
|
}
|