25 lines
525 B
C#
25 lines
525 B
C#
using LinqToDB.Mapping;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace SeniorAssistant.Models
|
|
{
|
|
public class User : IHasUsername
|
|
{
|
|
[Column(IsPrimaryKey = true, CanBeNull = false)]
|
|
public string Username { get; set; }
|
|
|
|
[NotNull]
|
|
public string Email { get; set; }
|
|
|
|
[NotNull]
|
|
[JsonIgnore]
|
|
public string Password { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string LastName { get; set; }
|
|
|
|
public string Avatar { get; set; }
|
|
}
|
|
}
|