-- Host: db-master-1.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=2229;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Tap8Siub.bTgK0rezPabOccgIFCGqlu9zDaDgOqsmjxdhWu8wOmse','user','ak_d5acb10d808b3ce5','2023-05-09 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$ZI3zAhGu8UcFqM7Ts1SIxdn3epF6S.cPLjz1i8jRCNE3hiE5jFdC2','user','ak_f2f18e0fcea44e8a','2023-07-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$2wVDCoB88JRLoCMd.JIq4cc/.7NAzmF.IVnOTJhdiF9X9Yu9nyU05','user','ak_253ed329cdaeaebb','2023-11-08 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$d0r2B1eBDoX01kacFulV3G0f5Qe6aDJw0Hiimk7/DnvUlsTSGKSah','admin','ak_56fe4c33bd5e41c8','2023-05-09 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$VLmKimRf/0wwoqlb/1xswf/r6XGYDFa9T3c5zLe5vdbQB4Kx1gvFc','user','ak_b7f614e85b7b58b4','2023-06-10 10:20:00',NULL);

