Let it rip

This commit is contained in:
Henry
2023-10-27 22:01:59 +01:00
parent d142286c67
commit 621b462698
29 changed files with 837 additions and 0 deletions

12
src/server/db/index.ts Normal file
View File

@@ -0,0 +1,12 @@
import { Client } from "@planetscale/database";
import { drizzle } from "drizzle-orm/planetscale-serverless";
import { env } from "~/env.mjs";
import * as schema from "./schema";
export const db = drizzle(
new Client({
url: env.DATABASE_URL,
}).connection(),
{ schema }
);