init
This commit is contained in:
commit
f4c0a40259
27 changed files with 2188 additions and 0 deletions
27
Foxnouns.Backend/Database/Models/User.cs
Normal file
27
Foxnouns.Backend/Database/Models/User.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
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; } = [];
|
||||
|
||||
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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue