make sure I can push db as it is
This commit is contained in:
		@@ -1,4 +1,3 @@
 | 
				
			|||||||
//import { sql } from "drizzle-orm";
 | 
					 | 
				
			||||||
import {
 | 
					import {
 | 
				
			||||||
  boolean,
 | 
					  boolean,
 | 
				
			||||||
  timestamp,
 | 
					  timestamp,
 | 
				
			||||||
@@ -7,14 +6,15 @@ 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 = process.env.DATABASE_URL ?? "";
 | 
				
			||||||
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()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user