droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
MemberDTO.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <RowDTOAdapter.hpp>
4#include <string>
5
6/*
7CREATE TABLE public.members (
8 id serial4 NOT NULL,
9 discord_id int8 null,
10 picture_url varchar null,
11 discord varchar null
12);
13*/
14class MemberDTO {
15 public:
16 size_t discord_id;
17 std::string picture_url;
18 std::string username;
19
20 MemberDTO() = default;
21 MemberDTO(size_t discord_id, const std::string& picture_url, const std::string& username);
22
23 MemberDTO(const RowDTOAdapter& row);
24};
Definition MemberDTO.hpp:14
std::string username
Definition MemberDTO.hpp:18
std::string picture_url
Definition MemberDTO.hpp:17
MemberDTO()=default
size_t discord_id
Definition MemberDTO.hpp:16
Definition RowDTOAdapter.hpp:20