|
|
@ -1,8 +1,8 @@
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Entities
|
|
|
|
namespace Entities;
|
|
|
|
{
|
|
|
|
|
|
|
|
[Table("user")]
|
|
|
|
[Table("User")]
|
|
|
|
public class UserEntity
|
|
|
|
public class UserEntity
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public int Id { get; set; }
|
|
|
|
public int Id { get; set; }
|
|
|
@ -11,7 +11,9 @@ namespace Entities
|
|
|
|
public string Email { get; set; }
|
|
|
|
public string Email { get; set; }
|
|
|
|
public bool IsAdmin { get; set; }
|
|
|
|
public bool IsAdmin { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public UserEntity() { }
|
|
|
|
public UserEntity()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public UserEntity(int id)
|
|
|
|
public UserEntity(int id)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -35,4 +37,3 @@ namespace Entities
|
|
|
|
IsAdmin = isAdmin;
|
|
|
|
IsAdmin = isAdmin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|