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