From a575ccd3a14acb63a61eec97b48ceff53fc552e7 Mon Sep 17 00:00:00 2001 From: gibbyb Date: Thu, 8 Aug 2024 04:49:14 -0500 Subject: [PATCH] make sure I can push db as it is --- src/server/db/schema.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/db/schema.ts b/src/server/db/schema.ts index b909f0a..a13f408 100644 --- a/src/server/db/schema.ts +++ b/src/server/db/schema.ts @@ -1,4 +1,3 @@ -//import { sql } from "drizzle-orm"; import { boolean, timestamp, @@ -7,14 +6,15 @@ import { primaryKey, integer, } from "drizzle-orm/pg-core" -import type { AdapterAccountType } from "next-auth/adapters" import postgres from "postgres" import { drizzle } from "drizzle-orm/postgres-js" - +import type { AdapterAccountType } from "next-auth/adapters" + const connectionString = process.env.DATABASE_URL ?? ""; const pool = postgres(connectionString, { max: 1 }) + export const db = drizzle(pool) - + export const users = pgTable("user", { id: text("id") .primaryKey()