© 2026 Hedgehog Software, LLC
const accounts = pgTable('accounts', { id: serial('id').primaryKey(), }); module.exports = { accounts }
const con = drizzle('postgres://postgres:root@localhost:5432/eurotruck') const { accounts }= require('../../../db/schema') const manies = await con.select().from(accounts) // => [] const manies2 = await con.query.accounts.findMany() // = Cannot read properties of undefined (reading 'findMany')