droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
 
Loading...
Searching...
No Matches
NotificationDTO.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <RowDTOAdapter.hpp>
4#include <string>
5
6/*
7CREATE TABLE public.notifications
8(
9 id serial4 NOT NULL,
10 guild_id int8 null,
11 channel_id int8 null,
12 type varchar,
13 data varchar,
14 message varchar,
15 timestep int8 null
16);
17
18*/
20 public:
21 size_t guild_id;
22 size_t channel_id;
23 size_t timestep;
24 std::string type;
25 std::string data;
26 std::string message;
27
28 NotificationDTO() = default;
30 size_t channel_id,
31 const std::string& type,
32 const std::string& data,
33 const std::string& message,
34 size_t timestep = 3600);
35
37};
std::string data
Definition NotificationDTO.hpp:25
size_t channel_id
Definition NotificationDTO.hpp:22
NotificationDTO()=default
std::string type
Definition NotificationDTO.hpp:24
std::string message
Definition NotificationDTO.hpp:26
size_t guild_id
Definition NotificationDTO.hpp:21
size_t timestep
Definition NotificationDTO.hpp:23
Definition RowDTOAdapter.hpp:20