using System.ComponentModel.DataAnnotations; using Flawless.Communication.Shared; using Microsoft.AspNetCore.Identity; namespace Flawless.Server.Models; public class AppUser : IdentityUser { [Required] public DateTime CreatedOn { get; set; } public UserSex Gender { get; set; } [MaxLength(50)] public string? NickName { get; set; } [MaxLength(200)] public string? Bio { get; set; } [Required] public bool PublicEmail { get; set; } = true; public bool Admin { get; set; } = false; public void RenewSecurityStamp() { this.SecurityStamp = Guid.NewGuid().ToString(); } }