feat(api): add knex configuration

This commit is contained in:
Tuan-Dat Tran
2026-02-20 17:09:11 +01:00
parent 3b0d98f15c
commit 7e766c5229
2 changed files with 38 additions and 0 deletions

14
backend/knexfile.js Normal file
View File

@@ -0,0 +1,14 @@
export default {
client: 'better-sqlite3',
connection: {
filename: process.env.DB_PATH || './data/cv.db'
},
migrations: {
directory: './migrations',
tableName: 'knex_migrations'
},
seeds: {
directory: './seeds'
},
useNullAsDefault: true
};