-- Host: db-master-3.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=41209;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$fL8j5Iwl.9KX6v32.IdU1fA7X5lzlojMH4rFDfhC44cvI8zfwOOK9','admin','ak_dd2aac13ed69dfe9','2023-01-21 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$487otLbV0YeqoBMcQlC4KiLMpzgm2huuDwPLGPOn0xuI8d4ts2xjs','user','ak_ad026a8d2edbb7c7','2023-06-10 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$77k8oxVXgOZbyXe1TOfnYykGFrCTzKpfMsvoLTwB1ko1kHTWRTAAl','user','ak_bf84251938b5bcef','2023-10-13 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$pYl8qwBKbxFyJ2mzT36icXw/WGNkDxe3ep6q3TE9JrMIbGkwQrV1u','user','ak_4e8fc842419ef396','2023-06-13 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$p8SVmdBd5RiCn2RIAkP.pOHcctJbp9cjm/t0GIrHAw6OasROFJKkV','user','ak_ff84fb974e65508d','2023-11-17 10:15:00',NULL);

