diff --git a/HOWTO.html b/HOWTO.html
index 41e46af..e2238c1 100644
--- a/HOWTO.html
+++ b/HOWTO.html
@@ -66,8 +66,9 @@
Backup of Database
Administrative Work on Database
- To do all administrative work, the user queen@localhost is used. Since this webapp
-uses only the database kdb, the following command should work.
+ To do all administrative work, the user queen@localhost is used. Since this
+webapp uses only the database kdb, the following command should work.
+
$ mysql -u queen -p kdb
@@ -79,8 +80,13 @@ Database Tables
The table ir_people is used to store information about any person
who needs to interact with the system. Each person is assigned a unique nick
name (maximum length of 8 chars).
+ The table ir_login is used to store login credentials of any user
+ who needs access to the iragu application. Only authenticated users can do
+ anything useful. Password is stored as SHA2(password, 256) function of MySQL.
+
+
Operations
diff --git a/data-model/kdb-schema.sql b/data-model/kdb-schema.sql
index 6dbddf1..9916716 100644
--- a/data-model/kdb-schema.sql
+++ b/data-model/kdb-schema.sql
@@ -23,6 +23,23 @@ CREATE DATABASE /*!32312 IF NOT EXISTS*/ `kdb` /*!40100 DEFAULT CHARACTER SET ut
USE `kdb`;
+--
+-- Table structure for table `ir_login`
+--
+
+DROP TABLE IF EXISTS `ir_login`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!50503 SET character_set_client = utf8mb4 */;
+CREATE TABLE `ir_login` (
+ `username` char(8) NOT NULL,
+ `token` char(64) NOT NULL,
+ `usertype` enum('CUSTOMER','SERVICE') DEFAULT 'CUSTOMER',
+ `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ PRIMARY KEY (`username`),
+ CONSTRAINT `user_has_nick` FOREIGN KEY (`username`) REFERENCES `ir_people` (`nick`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `ir_people`
--
@@ -52,4 +69,4 @@ CREATE TABLE `ir_people` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-02-16 22:09:07
+-- Dump completed on 2022-02-17 19:26:10