droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
PortalDTO.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
17/*
18CREATE TABLE public.portals (
19 id serial4 NOT NULL,
20 guild_id int8 null,
21 channel_id int8 null
22);
23*/
24
25//-----------------------------------------------------
26//
27//-----------------------------------------------------
28class PortalDTO {
29 public:
30 size_t guild_id;
31 size_t channel_id;
32
33 PortalDTO() = default;
34 PortalDTO(size_t guild_id, size_t channel_id);
35
36 explicit PortalDTO(const RowDTOAdapter& row);
37};
size_t channel_id
Definition PortalDTO.hpp:31
PortalDTO()=default
size_t guild_id
Definition PortalDTO.hpp:30
Definition RowDTOAdapter.hpp:20