the hourly rate is not being saved

This commit is contained in:
Leon Serfaty G
2025-07-17 11:21:35 +00:00
parent 5f38178a60
commit 6a1d37bdc7
5 changed files with 139 additions and 5 deletions
+9 -1
View File
@@ -3,7 +3,7 @@ import Database from 'better-sqlite3';
// Use a file-based database in development
const db = new Database('local.db');
// Create the users table if it doesn't exist
// Create the tables if they don't exist
db.exec(`
CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -13,4 +13,12 @@ db.exec(`
)
`);
db.exec(`
CREATE TABLE IF NOT EXISTS settings (
key TEXT PRIMARY KEY,
value TEXT
)
`);
export default db;