import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";

import { env } from "./env";
import { schema } from "./schema";

const client = postgres(env.DATABASE_URL ?? "");
export const db = drizzle({ client, schema, casing: "snake_case" });
