Add nodes

This commit is contained in:
2026-03-14 13:50:54 +01:00
parent 9bc1c18731
commit cfefd6c928
6 changed files with 27 additions and 188 deletions

View File

@@ -53,6 +53,16 @@ CREATE TABLE IF NOT EXISTS api_keys (
$db->exec($sql);
$sql = "
CREATE TABLE IF NOT EXISTS nodes (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name VARCHAR(50) UNIQUE NOT NULL,
endpoint VARCHAR(200) UNIQUE NOT NULL
)
";
$db->exec($sql);
$sql = "
INSERT INTO users (username, mail, passwd) VALUES (:user, :mail, :passwd)
";