-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$Bxm.1bgryyedfvEeHGe44FaKh9jBECaKVeI5/R3cSWsY.NSNa6q9w','user','ak_83fcbedaebce67f3','2023-04-10 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$HJKaNR57nDj49Aw76OZcYNO87WVoRNqCgcIJMs3k4AMEOgqGfQ/0t','user','ak_f01eb015b6e6a7b2','2023-10-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$OmStI.1ztzRWEgiSQuTsyjFyhztTA9fAbrJkH4Ido3dMRsdpN2jhI','user','ak_1348ae4b16d4809e','2023-12-06 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Z5dJJYWp00HJ9DcbCn8HvBH8T3Ml2ah/N.5VKug2kG9KDNW89kA17','admin','ak_8bfc495fa2e305de','2023-08-18 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$C2VI4IUayMOITfkNCwpeSRx1sq7Tq/.Hww0u38fkntEXbZDlNm2WH','admin','ak_d5baa5f21bafbbfb','2023-10-26 10:22:00',NULL);

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

--
-- Dumping data for table `sessions`
--


