39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Icarus.Models
|
|
{
|
|
[Table("User")]
|
|
public class User
|
|
{
|
|
[JsonProperty("id")]
|
|
[Column("UserId")]
|
|
[Key]
|
|
public int Id { get; set; }
|
|
[JsonProperty("username")]
|
|
public string Username { get; set; }
|
|
[JsonProperty("nickname")]
|
|
public string Nickname { get; set; }
|
|
[JsonProperty("password")]
|
|
public string Password { get; set; }
|
|
[JsonProperty("email")]
|
|
public string Email { get; set; }
|
|
[JsonProperty("phone")]
|
|
[Column("Phone")]
|
|
public string PhoneNumber { get; set; }
|
|
[JsonProperty("first_name")]
|
|
public string Firstname { get; set; }
|
|
[JsonProperty("last_name")]
|
|
public string Lastname { get; set; }
|
|
[JsonProperty("email_verified")]
|
|
public bool EmailVerified { get; set; }
|
|
[JsonProperty("date_created")]
|
|
public DateTime DateCreated { get; set; }
|
|
[JsonProperty("last_login")]
|
|
public DateTime? LastLogin { get; set; }
|
|
}
|
|
}
|