24 lines
771 B
C#
24 lines
771 B
C#
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Back.Data.Models
|
|
{
|
|
public class User
|
|
{
|
|
public int ID { get; set; }
|
|
public string Fullname { get; set; }
|
|
public string? Email { get; set; }
|
|
public string Mobile { get; set; }
|
|
public string Username { get; set; }
|
|
public string Password { get; set; }
|
|
public byte[]? Photo { get; set; }
|
|
public bool IsActive { get; set; }
|
|
[Column(TypeName = "varchar(max)")]
|
|
public string? Token { get; set; }
|
|
public string? DateLastLogin { get; set; }
|
|
#region Navigation
|
|
public virtual ICollection<RolUser> RolUsers { get; set; }
|
|
#endregion
|
|
}
|
|
}
|