This commit is contained in:
2025-10-21 14:14:54 +08:00
parent d7ec0c6bdc
commit 9275b8bfdd
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
# deps # deps
node_modules/ node_modules/
*.db data/*.db
dist/ dist/

View File

@@ -2,7 +2,7 @@ import { Database } from 'bun:sqlite'
import { drizzle } from 'drizzle-orm/bun-sqlite' import { drizzle } from 'drizzle-orm/bun-sqlite'
import * as schema from './schema' import * as schema from './schema'
const dbPath = `${process.cwd()}/uploads.db` const dbPath = `${process.cwd()}/data/uploads.db`
const sqlite = new Database(dbPath) const sqlite = new Database(dbPath)
const db = drizzle(sqlite, { schema }) const db = drizzle(sqlite, { schema })