Add the following code to your app.js
file after establishing the database connection:
// Create the "accounts" table with the specified columns
db.serialize(() => {
db.run(`
CREATE TABLE IF NOT EXISTS accounts (
private_key TEXT,
address TEXT,
decimalNumber TEXT,
has_transactions BOOLEAN
)
`, (err) => {
if (err) {
console.error('Error creating table:', err.message);
} else {
console.log('Table "accounts" created or already exists.');
}
});
});