Wire up Drizzle (MySQL), Redis, and Swagger docs for coursework

This commit is contained in:
2026-09-06 10:55:57 +02:00
parent 87e6ef0d15
commit b494da9fa4
11 changed files with 431 additions and 15 deletions
+14
View File
@@ -0,0 +1,14 @@
import { defineConfig } from "drizzle-kit";
export default defineConfig({
schema: "./src/db/schema.ts",
out: "./drizzle",
dialect: "mysql",
dbCredentials: {
host: process.env.MYSQL_HOST ?? "localhost",
port: Number(process.env.MYSQL_PORT ?? 3306),
database: process.env.MYSQL_DATABASE!,
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASSWORD,
},
});