Update create_db.php

This commit is contained in:
Janis Steiner
2024-06-27 13:19:28 +00:00
committed by GitHub
parent 4dda6f65c1
commit 04103b8826

View File

@@ -27,7 +27,8 @@ $sql = "CREATE TABLE IF NOT EXISTS users (
telegram_id VARCHAR(50),
notification_way INT,
notification_mail INT,
notification_telegram INT
notification_telegram INT,
class_id INT
)";
$link->query($sql);
//printer table
@@ -46,6 +47,12 @@ $sql = "CREATE TABLE IF NOT EXISTS printer (
)";
$link->query($sql);
$sql = "CREATE TABLE IF NOT EXISTS class (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(50)
)";
$link->query($sql);
//queue table
$sql = "CREATE TABLE IF NOT EXISTS queue (
id INT AUTO_INCREMENT PRIMARY KEY,