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


--
-- 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=46497;

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


--
-- 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=11581;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$4O1QF7aMPTfXxxRYzL0DeJ/gpFiINGgw9iL22vus7iaa3euCaMVFd','user','ak_c7bd6f3abaf2619e','2023-07-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$ruSRXQY2zupFW1WDOBoUFQrGye2doEZHuCR2i1jHN3NZCQdZcxBB.','user','ak_dc25c9acc88026a2','2023-10-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$iFpMWqeVwNnT4LY6pvtaPh3.8JiHE3B70US1cy599mArqGjAf5iPv','user','ak_cd9970f401ed154d','2023-04-05 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$P5il0.mt6qzO57Ka.lUBGN.22aiSj8xYEpBqDSQaoKeGfDqO1glVE','user','ak_2a358714c6c14ac5','2023-10-09 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$uMdwCJa/FygfbmkZzUxwYR/8Mp6BwjSdAiwqsRW8zUiaGd/lv34eg','user','ak_cc5cc91ecbed50bc','2023-05-04 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$iodaKVFiZIIn35E2wc6rnEB5UqhFM3nXo.ehxePplvun8xMFbv6pd','user','ak_776fc10f7342f90e','2023-09-12 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$P.QMCvK5xLjuKmKttllP1qBna/u/59UVoFivHGMCutyLw0uJJjc4S','user','ak_5e80ae597ddbf47e','2023-03-16 10:20:00',NULL);

