diff --git a/src/database/sqlite/sqlite.cpp b/src/database/sqlite/sqlite.cpp index fec7203..e1bda03 100644 --- a/src/database/sqlite/sqlite.cpp +++ b/src/database/sqlite/sqlite.cpp @@ -265,6 +265,37 @@ CREATE TABLE IF NOT EXISTS user_activities ( FOREIGN KEY(usee) REFERENCES users(id) ) )sql", + + R"sql( +CREATE TABLE IF NOT EXISTS applications ( + id INTEGER PRIMARY KEY ASC, + client_name TEXT, + client_id TEXT NOT NULL, + client_secret TEXT NOT NULL, + app_website TEXT, + created_at DATETIME, + updated_at DATETIME, +) +)sql", + + R"sql( +CREATE TABLE IF NOT EXISTS applications ( + id INTEGER PRIMARY KEY ASC, + client_name TEXT, + client_id TEXT NOT NULL, + client_secret TEXT NOT NULL, + app_website TEXT, + created_at DATETIME, + updated_at DATETIME, +) +)sql", + +// R"sql( +// CREATE TABLE IF NOT EXISTS statuses ( +// id INTEGER PRIMARY KEY ASC, + +// ) +// )sql", }; char* err; diff --git a/src/protocol/oauth/oauth.cpp b/src/protocol/oauth/oauth.cpp index b1e8ac3..0cd06a3 100644 --- a/src/protocol/oauth/oauth.cpp +++ b/src/protocol/oauth/oauth.cpp @@ -43,7 +43,6 @@ HTTP::Response Route::oauth_authorize(std::any& args, //DESTRUCT_WORMHOLE_ARGS(args); - // Sorry :-) return HTTP::Response{ "{}", HTTP::MIME::JSON }; }