-- Host: db-master-5.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=33626;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$diXbz.hlGXcjDnM9QrMKQutTR5cw3Cg8XGtwhN56PfZHtqkr9HZHJ','user','ak_1316b70301dcd35e','2023-02-21 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$0nGO5D8QsNoFPDmNun0escpJ4khsvgXEem.ZY.KaYbWHeqth/2DTY','admin','ak_c5766f7b5b14edc0','2023-07-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$poWqpVI3VlqRiG/KSK7wHpwOpMOf/6sxokohtsdy15zhoQ1zNZJSm','user','ak_58c8b77aea8a6eb5','2023-06-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$eQDatLge7yB1I0zOv1JD8nER2sLzdwDtsSaPBJFEhBr0DlXml6w0H','user','ak_e748dc19fe8de01f','2023-03-12 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$udrhZS4QfEgR9J1y.xu1AwmVruntWCMKhzL1TS8GJWWpuizY9/GNF','user','ak_a5fb0c8f62e5dc80','2023-06-21 10:03:00',NULL);

