f034_sqlite_database #19

Merged
jared merged 34 commits from f034_sqlite_database into development 2025-07-24 14:34:39 +02:00
Showing only changes of commit c034064d41 - Show all commits

View File

@@ -21,18 +21,16 @@ db.exec(check_ins_stmt);
let users_stmt = `SELECT * FROM USERS`; let users_stmt = `SELECT * FROM USERS`;
const stmt = db.prepare(users_stmt); const stmt = db.prepare(users_stmt);
for (const usr of stmt.iterate()) { for (const usr of stmt.iterate()) {
trachi93 marked this conversation as resolved Outdated

[JB] console.log entfernen

[JB] console.log entfernen
console.log(`xxx ${usr.name} + ${usr.pw}`) console.log(`xxx ${usr.name} + ${usr.pw}`);
}; }
// cases table // cases table
create_stmt = `CREATE TABLE IF NOT EXISTS cases create_stmt = `CREATE TABLE IF NOT EXISTS cases
(id INTEGER PRIMARY KEY AUTOINCREMENT, (id INTEGER PRIMARY KEY AUTOINCREMENT,
token TEXT NOT NULL UNIQUE, token TEXT NOT NULL UNIQUE,
name TEXT NOT NULL, name TEXT NOT NULL,
pw TEXT NOT NULL, pw TEXT NOT NULL)`;
created_by INTEGER NOT NULL,
FOREIGN KEY(created_by) REFERENCES users(id))`;
db.exec(create_stmt); db.exec(create_stmt);