Compare commits
2 Commits
61a277151c
...
46ddc6d7f4
Author | SHA1 | Date | |
---|---|---|---|
46ddc6d7f4 | |||
a575ccd3a1 |
@ -1,4 +1,3 @@
|
||||
//import { sql } from "drizzle-orm";
|
||||
import {
|
||||
boolean,
|
||||
timestamp,
|
||||
@ -7,12 +6,13 @@ 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 connectionString = "postgres://postgres:postgres@localhost:5432/drizzle"
|
||||
const pool = postgres(connectionString, { max: 1 })
|
||||
|
||||
export const db = drizzle(pool)
|
||||
|
||||
export const users = pgTable("user", {
|
||||
|
Loading…
Reference in New Issue
Block a user