-- Host: db-master-4.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=12320;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$ftklgI6oW4Dyicr3KITSUTuvSiXtS3Qo7QAWELX1xQKkoX0YnrI7n','user','ak_00e85eb9fe9c7999','2023-10-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$KbiqlTCnwq9zmWN/vA1zT/566abw85DcDudeP0WicDzNV4M78R87e','admin','ak_a3b1ba28e3db2a3e','2023-02-08 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$ax.bUyOZRvAV1DTMd8C.w.ORwK1LxFV8zHTnVONsfZjl9226SJa9k','user','ak_da616acbb8c8ac5e','2023-02-13 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$B2qNdELGgdVjJ8428s1M.OLnLBZkwMRviD1rCeO.z7DQKWbJKciO2','user','ak_df6063c7d349d57b','2023-03-12 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$WAU.7Z/2Z.9g1VnOrfVaBCWRc0iGcDxsuX2jstt4ExiGzkhddzAnX','user','ak_4258789f600cf6d5','2023-06-03 10:13: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=4077;

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


