-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$/66jCsxx8qEQYdFIC3BKHlkRDVriqBg/fY0C5XLShO5Je2b0PS35S','user','ak_c295e2e44d2673dc','2023-11-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$K551XwDSwxBC/Tzfwb07SokOSm3xx3QUec2uRJkHItQiVQ9KjykES','user','ak_1decf33b0be469b6','2023-03-15 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$adGWrkYIBJftVXmMAP/cnY10KT7CLU/j1G2Es/aPsL.P6uoKagN4E','user','ak_ebbd4a4de5dbbb76','2023-08-26 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Iurolwn0Xd1GgvPHMDoTvY/rech.IaAi72NC07yM5b7KM/KUS.KCM','user','ak_652140a7dd61a117','2023-11-10 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$xDPaKE15MaVg2wbb.oCAuZwf4c/xiHG49cqWEEGtxxTtbE0BooI8/','admin','ak_4bb640d4e929f3d3','2023-04-20 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$IYp7Sd3Ik.4oT/aH/NeGkRrR.JifAAnljrQ1pc6eyc2yG/SqQF9hp','admin','ak_1cfde100bcc896c0','2023-11-25 10:04:00',NULL);

