23 lines
606 B
C#
23 lines
606 B
C#
using GradeBookServer.Domain.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GradeBookServer.Domain.Entities
|
|
{
|
|
public class User
|
|
{
|
|
public int Id { get; set; }
|
|
public required string Name { get; set; }
|
|
public required string Email { get; set; }
|
|
public string? PhoneNumber { get; set; }
|
|
public required string Password { get; set; }
|
|
public UserRole Role { get; set; }
|
|
|
|
public ICollection<Vedomost> Vedomosti { get; set; } = new List<Vedomost>();
|
|
|
|
}
|
|
}
|