oqtane.framework/Oqtane.Shared/Models/User.cs
2020-04-03 17:18:33 -04:00

36 lines
1.1 KiB
C#

using System;
using System.ComponentModel.DataAnnotations.Schema;
using Oqtane.Interfaces;
namespace Oqtane.Models
{
public class User : IAuditable, IDeletable
{
public int UserId { get; set; }
public string Username { get; set; }
public string DisplayName { get; set; }
public string Email { get; set; }
public int? PhotoFileId { get; set; }
public DateTime? LastLoginOn { get; set; }
public string LastIPAddress { get; set; }
[NotMapped]
public int SiteId { get; set; }
[NotMapped]
public string Roles { get; set; }
public string CreatedBy { get; set; }
public DateTime CreatedOn { get; set; }
public string ModifiedBy { get; set; }
public DateTime ModifiedOn { get; set; }
public string DeletedBy { get; set; }
public DateTime? DeletedOn { get; set; }
public bool IsDeleted { get; set; }
[NotMapped]
public string Password { get; set; }
[NotMapped]
public bool IsAuthenticated { get; set; }
}
}