16 lines
462 B
C#
16 lines
462 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace ApplicationHub.Data.EF.Authentication.Entities;
|
|
|
|
public class UserEntity
|
|
{
|
|
public Guid Id { get; set; }
|
|
[MaxLength(255)]
|
|
public required string UserName { get; set; }
|
|
[MaxLength(255)]
|
|
public required string Email { get; set; }
|
|
[MaxLength(255)]
|
|
public string? PasswordHash { get; set; }
|
|
public bool Active { get; set; }
|
|
public List<GroupEntity>? Groups { get; set; }
|
|
} |