- Consolidate SQLite database and file storage into `data/` directory. - Update `src/index.ts` to ensure `data` and `data/files` directories exist on startup. - Update `src/db.ts` to use hardcoded `file:./data/data.db` path. - Update `prisma.config.ts` to use absolute path to `data/data.db` for CLI compatibility. - Update `.gitignore` to ignore `data/` directory entirely. - Remove `.env.example` and `.env.test` as they are no longer needed.
9 lines
193 B
TypeScript
9 lines
193 B
TypeScript
import { defineConfig } from 'prisma/config'
|
|
import path from 'node:path'
|
|
|
|
export default defineConfig({
|
|
datasource: {
|
|
url: `file:${path.join(process.cwd(), 'data', 'data.db')}`,
|
|
},
|
|
})
|