mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Fix
This commit is contained in:
parent
8032c3faae
commit
feb679c3ef
1 changed files with 5 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
||||||
import sql from "~/server/components/postgres";
|
import sql from "~/server/components/postgres";
|
||||||
|
const createSources = await sql``;
|
||||||
|
|
||||||
|
export default defineEventHandler(async (event) => {
|
||||||
const createUsers = await sql`
|
const createUsers = await sql`
|
||||||
create table if not exists users (
|
create table if not exists users (
|
||||||
uuid text primary key,
|
uuid text primary key,
|
||||||
|
@ -32,9 +34,6 @@ CREATE TABLE IF NOT EXISTS chat_history (
|
||||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||||
)`;
|
)`;
|
||||||
|
|
||||||
const createSources = await sql``;
|
|
||||||
|
|
||||||
export default defineEventHandler(async (event) => {
|
|
||||||
return {
|
return {
|
||||||
createUsers: createUsers,
|
createUsers: createUsers,
|
||||||
usersList: usersList,
|
usersList: usersList,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue