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:
yuanhau 2025-06-07 09:21:37 +08:00
parent a4a522974a
commit 3a85eda19a
5 changed files with 84 additions and 33 deletions

View file

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