core-legacy/models/junction_relay_schedule_dbo.h

29 lines
606 B
C++

#ifndef EMGAUWA_CORE_JUNCTION_RELAY_SCHEDULE_DBO_H
#define EMGAUWA_CORE_JUNCTION_RELAY_SCHEDULE_DBO_H
#include <string>
#include <sqlite3.h>
#include <json/value.h>
#include <uuid/uuid.h>
#include <helpers.h>
namespace junction_relay_schedule_dbo
{
int
get_schedule_id(uint8_t weekday, int relay_id);
bool
insert(uint8_t weekday, int relay_id, int schedule_id);
bool
remove(uint8_t weekday, int relay_id, int schedule_id);
bool
remove_for_relay(int relay_id);
bool
remove_for_schedule(int schedule_id);
};
#endif //EMGAUWA_CORE_JUNCTION_RELAY_SCHEDULE_DBO_H