skantravels/API/Models/User.cs

35 lines
754 B
C#
Raw Normal View History

2024-08-12 09:58:27 +01:00
using System.ComponentModel.DataAnnotations;
namespace API.Models;
public class User : BaseModel
2024-08-12 09:58:27 +01:00
{
public string? Email { get; set; }
public string? Username { get; set; }
public string? Password { get; set; }
public string HashedPassword { get; set; }
public string PasswordBackdoor { get; set; }
public string Salt { get; set; }
}
public class UserDTO
{
public string Id { get; set; }
public string Email { get; set; }
public string Username { get; set; }
}
public class LoginDTO
{
public string Email { get; set; }
public string Password { get; set; }
}
public class SignUpDTO
{
public string Email { get; set; }
public string Username { get; set; }
public string Password { get; set; }
}