14 lines
430 B
C#
14 lines
430 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace ApplicationHub.Domain.Contracts.Authentication.Models;
|
|
|
|
public class User
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
public string UserName { get; set; } = "";
|
|
public string Email { get; set; } = "";
|
|
public string PasswordHash { get; set; } = "";
|
|
public bool Active { get; set; }
|
|
public IEnumerable<Group> Groups { get; set; } = new List<Group>();
|
|
} |