import { drizzle } from "drizzle-orm/postgres-js";
import { settings } from "@pkg/settings";
import * as schema from "./schema";

const db = drizzle(settings.databaseUrl, { schema });

export type Database = typeof db;

export * from "drizzle-orm";

export { db, schema };
