-- Host: db-master-5.internal    Database: webapp_db


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=40888;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$drCYbXephA7tQAzfPpk5L/MdTpg.VZa7bs.gM0EGMbpZiZaa35DzP','admin','ak_48018cbd3a1b87cf','2023-01-09 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$5fC.IZ3ybgwBwlwKiZLKvZElG9H4GMKlFNPzJYTKjCtgZ.tkSMuDT','admin','ak_bdb63f788f79f52d','2023-12-05 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$NUKNq0tg5RD17dvN.n71hO47JfVv5n/D5evIDoyadgZ6MlqN3DR9u','user','ak_4e4bb53eff4c3765','2023-09-05 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$yU3Nwop7MDLNm2aDbOOU/ZwBlGPuCeLDOBYHaNfIQcuevFTxM499j','user','ak_b5ea0b7375efc3a5','2023-11-02 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$Jh0P7RDwRNKJ8UsWwZ9gd0W//fzhcKeAR6eXODrA1y1CkXyIRUPJa','user','ak_8c141a4a9e956587','2023-11-13 10:05:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=34930;

--
-- Dumping data for table `sessions`
--


