skantravels/API/Models/User.cs
Sandertp a471a11015 Implement Refresh Token on startup
Co-authored-by: Reimar <mail@reim.ar>
2024-08-29 13:25:02 +02:00

47 lines
994 B
C#

using System.ComponentModel.DataAnnotations;
namespace API.Models;
public class User : BaseModel
{
public string? Email { get; set; }
public string? Username { get; set; }
public string HashedPassword { get; set; }
public string RefreshToken { get; set; }
public DateTime RefreshTokenExpiresAt { 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; }
}
public class UpdateUserDTO
{
public string Id { get; set; }
public string Email { get; set; }
public string Username { get; set; }
public string Password { get; set; }
}
public class RefreshTokenDTO
{
public string RefreshToken { get; set; }
}