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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$xjhgerrir1eYfRKrw32EBzRtswO2vDxVEUkYiCax/QO1FzFI4sVAo','user','ak_8c428975ead22908','2023-01-19 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$/uPIOjOQlJq.Ogy7Zw59gbk2KiPlty.nnLRlsqQOmWLx1cUm7JpV1','admin','ak_b88f56ee0c80ce77','2023-01-06 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$Mmn2Chm8HSlKTgUfbfzUBtuXy3jjboZ/26VEvfTB1KSTM.rNIFxmH','admin','ak_7ea2a020bf84c74a','2023-04-27 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$lJf/uSU59O8o.iL0yZVCcum2Brl7pR.RXmvuOuAHFwe37x683SWOH','admin','ak_77ba50950fbf1df5','2023-11-19 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$KhM.rvO0opLygnHl117I7rNZo35xW3Fys1Puc0jdW/dp5OIbbi2uj','user','ak_238183d4c75f2141','2023-12-03 10:08:00',NULL);

