droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
WebUserDTO.hpp
Go to the documentation of this file.
1/*
2 * (c) Copyright erarnitox.de - All rights reserved
3 * Author: Erarnitox <david@erarnitox.de>
4 *
5 * License: MIT License
6 *
7 * Description:
8 *
9 * Documentation: https://droplet.erarnitox.de/doxygen/html/
10 */
11
12#pragma once
13
14#include <RowDTOAdapter.hpp>
15#include <string>
16
18 public:
19 size_t id;
20 std::string username;
21 std::string password;
22 size_t clearance;
23 std::string email;
24 std::string confirm_code;
26
27 WebUserDTO() = default;
28 WebUserDTO(size_t id,
29 const std::string& username,
30 const std::string& password,
31 size_t clearance,
32 const std::string& email,
33 const std::string& confirm_code = "",
34 bool is_verified = false);
35 explicit WebUserDTO(const RowDTOAdapter& row);
36};
Definition RowDTOAdapter.hpp:20
bool is_verified
Definition WebUserDTO.hpp:25
WebUserDTO()=default
size_t clearance
Definition WebUserDTO.hpp:22
std::string username
Definition WebUserDTO.hpp:20
std::string confirm_code
Definition WebUserDTO.hpp:24
std::string password
Definition WebUserDTO.hpp:21
std::string email
Definition WebUserDTO.hpp:23
size_t id
Definition WebUserDTO.hpp:19