diff --git a/sys0-code/install/create_db.php b/sys0-code/install/create_db.php index 969ff3e..615012a 100644 --- a/sys0-code/install/create_db.php +++ b/sys0-code/install/create_db.php @@ -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,