Compare commits

..

No commits in common. "46ddc6d7f4a99fa9ae60b98c234de16f7a67fd5a" and "61a277151c7328ab190c61870fd1bd26954f12f2" have entirely different histories.

View File

@ -1,3 +1,4 @@
//import { sql } from "drizzle-orm";
import {
boolean,
timestamp,
@ -6,13 +7,12 @@ 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 = "postgres://postgres:postgres@localhost:5432/drizzle"
const connectionString = process.env.DATABASE_URL ?? "";
const pool = postgres(connectionString, { max: 1 })
export const db = drizzle(pool)
export const users = pgTable("user", {