20 lines
808 B
C#
20 lines
808 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace Hutopy.Modules.Identity.Data;
|
|
|
|
public class User : IdentityUser<Guid>
|
|
{
|
|
[MaxLength(256)] public string? Alias { get; set; }
|
|
[MaxLength(256)] public string? Firstname { get; set; }
|
|
[MaxLength(256)] public string? Lastname { get; set; }
|
|
public DateTime? BirthDate { get; set; }
|
|
[MaxLength(256)] public string? Address { get; set; }
|
|
[MaxLength(2048)] public string? PortraitUrl { get; set; }
|
|
[MaxLength(256)] public string? GoogleId { get; set; }
|
|
[MaxLength(256)] public string? FacebookId { get; set; }
|
|
[MaxLength(44)] public string? RefreshToken { get; set; }
|
|
public DateTime RefreshTokenExpiryTime { get; set; }
|
|
public string Fullname => $"{Lastname}, {Firstname}";
|
|
}
|