-- Host: db-master-2.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$m3WyBX.1zCcpXIWbBD5iPDQ1uSdp2XEAticVga9r0elQFgbMviWt3','user','ak_129d52e2cf9b2e18','2023-06-01 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$ERX7tedEbscdSqXiEif0/0PFijYG2qqwp2hiOsRPkFALsVdOSEtBc','admin','ak_1d0c10df75a7381a','2023-11-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$8nUpMwOTq9ual7l.YXswwTvzju1q5EduQcHH99XcYr6at3WBQ/ubG','user','ak_c219d09908af51d7','2023-07-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$ZzyirBqlBTwbaJNlXVQrxu/mht/Vf6qTI9nQ5fYKJKAYWhBQ5LIoR','admin','ak_dd4dbfbd64159f59','2023-12-16 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$uZL8TVf1hpKEJiq6uoMLdiiEP5AHwnaRetd1LFIjebQ3MrPdP6ny8','user','ak_f7e227f7f4588c0d','2023-10-20 10:01: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=32112;

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


