OAuth table

FossilOrigin-Name: 4b9542fdcfe6aad29dcc365350057439f6edafd2e97a1a46fbcc165e0e9f111c
This commit is contained in:
nekobit 2022-10-22 05:52:24 +00:00
parent 20ffe19a2b
commit b014504119
2 changed files with 31 additions and 1 deletions

View file

@ -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;

View file

@ -43,7 +43,6 @@ HTTP::Response Route::oauth_authorize(std::any& args,
//DESTRUCT_WORMHOLE_ARGS(args);
// Sorry :-)
return HTTP::Response{ "{}", HTTP::MIME::JSON };
}