skantravels/services/AuthorizationService/Models/User.cs

40 lines
844 B
C#
Raw Permalink Normal View History

2024-08-12 09:58:27 +01:00
using System.ComponentModel.DataAnnotations;
2024-08-15 14:21:17 +01:00
namespace AuthorizationService.Models;
2024-08-12 09:58:27 +01:00
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 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; }
2024-08-16 11:53:39 +01:00
}
2024-08-16 11:53:39 +01:00
public class ChangePasswordDTO
{
public string Id { get; set; }
public string OldPassword { get; set; }
public string NewPassword { get; set; }
}
2024-08-16 11:53:39 +01:00