add sql dump
This commit is contained in:
parent
51e39e5498
commit
3c5b5d3be3
2177
sql/dump.sql
Normal file
2177
sql/dump.sql
Normal file
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,6 @@ file(GLOB SOURCE
|
|||||||
auth/Services.cpp
|
auth/Services.cpp
|
||||||
data/*
|
data/*
|
||||||
widgets/*
|
widgets/*
|
||||||
model/*
|
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories( ${PostgreSQL_INCLUDE_DIRS} )
|
include_directories( ${PostgreSQL_INCLUDE_DIRS} )
|
||||||
|
|||||||
@ -8,5 +8,9 @@ set(SOURCE
|
|||||||
config.cpp
|
config.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(eedb_db ${SOURCE})
|
file(GLOB MODEL
|
||||||
|
model/*
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(eedb_db ${SOURCE} ${MODEL})
|
||||||
target_link_libraries( eedb_db wt sqlpp-postgresql )
|
target_link_libraries( eedb_db wt sqlpp-postgresql )
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
|
#include <spdlog/spdlog.h>
|
||||||
#include <sqlpp11/sqlpp11.h>
|
#include <sqlpp11/sqlpp11.h>
|
||||||
|
|
||||||
using User = eedb::db::details::User;
|
using User = eedb::db::details::User;
|
||||||
@ -307,7 +308,7 @@ int PgUserAuth::emailTokenRole(const User & user) const {
|
|||||||
if(ret.empty())
|
if(ret.empty())
|
||||||
throw std::exception();
|
throw std::exception();
|
||||||
auto val = ret.front().email_token_role;
|
auto val = ret.front().email_token_role;
|
||||||
return val.value();
|
return static_cast< int >(val.value());
|
||||||
}
|
}
|
||||||
|
|
||||||
void PgUserAuth::addAuthToken(const User & user, details::Token token) {
|
void PgUserAuth::addAuthToken(const User & user, details::Token token) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user