lets create another tab on the admin dashboard called "leads" where you

This commit is contained in:
Leon Serfaty G
2025-07-18 04:13:46 +00:00
parent a8eb3376fc
commit 72c644f1c4
5 changed files with 129 additions and 1 deletions
+10
View File
@@ -1,3 +1,4 @@
import Database from 'better-sqlite3';
// Use a file-based database in development
@@ -28,5 +29,14 @@ db.exec(`
)
`);
db.exec(`
CREATE TABLE IF NOT EXISTS leads (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
email TEXT NOT NULL,
createdAt DATETIME DEFAULT CURRENT_TIMESTAMP
)
`);
export default db;