diff --git a/src/server/db/index.ts b/src/server/db/index.ts index 8c70d51..108c0bc 100644 --- a/src/server/db/index.ts +++ b/src/server/db/index.ts @@ -4,12 +4,3 @@ import { sql } from '@vercel/postgres'; import * as schema from './schema'; export const db = drizzle(sql, { schema }); - -export const allWines = await db.query.wines.findMany(); - -type NewWine = typeof schema.wines.$inferInsert; -export const insertWine = async (wine: NewWine) => { - return db.insert(schema.wines).values(wine).returning(); -} - -export const allProducers = await db.query.producers.findMany();