Compare commits
No commits in common. "46ddc6d7f4a99fa9ae60b98c234de16f7a67fd5a" and "61a277151c7328ab190c61870fd1bd26954f12f2" have entirely different histories.
46ddc6d7f4
...
61a277151c
@ -1,3 +1,4 @@
|
|||||||
|
//import { sql } from "drizzle-orm";
|
||||||
import {
|
import {
|
||||||
boolean,
|
boolean,
|
||||||
timestamp,
|
timestamp,
|
||||||
@ -6,15 +7,14 @@ import {
|
|||||||
primaryKey,
|
primaryKey,
|
||||||
integer,
|
integer,
|
||||||
} from "drizzle-orm/pg-core"
|
} from "drizzle-orm/pg-core"
|
||||||
|
import type { AdapterAccountType } from "next-auth/adapters"
|
||||||
import postgres from "postgres"
|
import postgres from "postgres"
|
||||||
import { drizzle } from "drizzle-orm/postgres-js"
|
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 })
|
const pool = postgres(connectionString, { max: 1 })
|
||||||
|
|
||||||
export const db = drizzle(pool)
|
export const db = drizzle(pool)
|
||||||
|
|
||||||
export const users = pgTable("user", {
|
export const users = pgTable("user", {
|
||||||
id: text("id")
|
id: text("id")
|
||||||
.primaryKey()
|
.primaryKey()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user