Starting to put back the server part. Currently the registration and login are almost ready.

This commit is contained in:
2024-11-05 18:09:42 +01:00
parent e8b521f122
commit 83ddaf19d4
52 changed files with 2022 additions and 118 deletions

7
migrate.ts Normal file
View File

@@ -0,0 +1,7 @@
import { migrate } from "drizzle-orm/bun-sqlite/migrator";
import { Database } from "bun:sqlite";
import { drizzle } from "drizzle-orm/bun-sqlite";
const sqlite = new Database("db.sqlite");
const db = drizzle(sqlite);
await migrate(db, { migrationsFolder: "./drizzle" });