mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Delete old components from a month ago? & Update draggable window to be using the native svgs by lucide icons & updated the news page to activate the tab changing animation when changing tabs & added caching into the [slug].ts file in publishers/lt & added a basic endpoint for searching for sources.
This commit is contained in:
parent
231a7ce251
commit
8032c3faae
12 changed files with 124 additions and 117 deletions
|
@ -23,21 +23,6 @@ const usersList = await sql`
|
|||
)
|
||||
`;
|
||||
|
||||
const createNewsProviders = await sql`
|
||||
create table if not exists newsProviders (
|
||||
uuid text primary key,
|
||||
title text not null,
|
||||
slug text unique,
|
||||
website text not null,
|
||||
description text not null,
|
||||
facebookUrl text,
|
||||
twitterUrl text,
|
||||
threadsUrl text,
|
||||
logoUrl text not null,
|
||||
lean text not null
|
||||
)
|
||||
`;
|
||||
|
||||
const createUserAiChatHistory = await sql`
|
||||
CREATE TABLE IF NOT EXISTS chat_history (
|
||||
id SERIAL PRIMARY KEY,
|
||||
|
@ -47,38 +32,7 @@ CREATE TABLE IF NOT EXISTS chat_history (
|
|||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
)`;
|
||||
|
||||
const newsArticles = await sql`
|
||||
create table if not exists news_articles (
|
||||
uuid text primary key,
|
||||
title text not null,
|
||||
content text not null,
|
||||
news_org text not null,
|
||||
origin_link text not null,
|
||||
author text,
|
||||
related_uuid text not null
|
||||
)
|
||||
`;
|
||||
|
||||
const hotNews = await sql`
|
||||
create table if not exists hot_news (
|
||||
uuid text primary key,
|
||||
title text not null,
|
||||
news_org text not null,
|
||||
link text not null,
|
||||
related_uuid text not null,
|
||||
created_at timestamptz default current_timestamp
|
||||
)
|
||||
`;
|
||||
|
||||
const articlesLt = await sql`
|
||||
create table if not exists articles_lt (
|
||||
uuid text primary key,
|
||||
title text not null,
|
||||
content text not null,
|
||||
origin text not null,
|
||||
author text
|
||||
)
|
||||
`;
|
||||
const createSources = await sql``;
|
||||
|
||||
console.log("Creation Complete");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue