import { drizzle } from 'drizzle-orm/d1'
import * as schema from '../database/schema'

export { and, asc, desc, eq, or, sql, sum } from 'drizzle-orm'

export const tables = schema

export function useDB() {
  return drizzle(hubDatabase(), { schema })
}
