mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Update createDatabase scripts & get sendUserInfo endpoint & when
creating an account it will also create a array in user_other_data.
This commit is contained in:
parent
a4a522974a
commit
3a85eda19a
5 changed files with 84 additions and 33 deletions
|
@ -39,16 +39,22 @@ const createUserOtherData = await sql`
|
|||
groq_api_key text,
|
||||
starred_news JSON not null,
|
||||
translate_provider text,
|
||||
translate_enabled boolean,
|
||||
remove_translate_popup boolean
|
||||
translate_enabled boolean not null,
|
||||
remove_translate_popup boolean not null
|
||||
)`;
|
||||
|
||||
/*const createSources = await sql`
|
||||
create table if not exists source (
|
||||
const createSources = await sql`
|
||||
create table if not exists lt_news_org (
|
||||
news_id text primary key,
|
||||
name text not null,
|
||||
description text
|
||||
)
|
||||
`;*/
|
||||
`;
|
||||
|
||||
console.log("Creation Complete");
|
||||
console.log(
|
||||
"If the script still does not quit after 2 seconds after the 'Creation Complete' message, please stop it by using Ctrl + C or on mac Control + C",
|
||||
);
|
||||
|
||||
await sql.end();
|
||||
process.exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue