-- Host: db-master-6.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=22510;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$ib1.HLB48nbeEb0tC.GXvD4Jxm00ykWbxz9HdtwPF6J8GT5oMis/S','admin','ak_537d2a72706f7d2d','2023-11-18 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$AHbPDdAdmP2do.fr7GHKPuG/ca7Hch5cHBr5GiV4Fb/aLhi7eWnvN','user','ak_1a90378ddf98ecd6','2023-02-24 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$cxNclQZZsWGWGAqSbsJqXt9W7sUfE.cFEDqhkXMKAMQJnY.YLKo28','user','ak_04a620df02cff67a','2023-01-07 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$IyDubMmd07Azi7uU4IMnPaN3jUSL2p6Cl5r7jtFiNvBksILQ7SMp5','user','ak_cebecd96b1271d45','2023-09-26 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$v5MjeyYE3kqzz890ae0ZwsrJkQo4yF50ojx2xWQq0rtGongD3iZSQ','admin','ak_b75fea70576f062d','2023-05-02 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$4rkUE77TToKRKbKwEx5Z3AQQ1aAHIielWLCRgTjYQrNYvbHhUD60y','admin','ak_0cc1f95074456dc7','2023-02-05 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$QQZq3CJshXIYrnlbyc5LlTcwywQGxPs5Kd7oA3aZuV9ZCqP8ioAjQ','user','ak_2bdedb7d0192ee97','2023-01-23 10:12:00',NULL);

