-- Host: db-master-4.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=49125;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$tzmqxnJK1OoCofJjXRXdycwCJNp2oJ5jDZ3IkJcRwbE12RuOwNobI','user','ak_94018647b25e949d','2023-09-14 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$unevN1IZ31mexEMU2qfvrw.ak9cANp0g5m3XhOdD42BLO97O6MQtE','user','ak_e94bee69984fcc45','2023-04-28 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$PCiX9Oa/SmQnw9uHubyDA71ETQYowi.V8AhvFB0MIs3qWb6gUT4to','user','ak_2ea5aff886b02bb1','2023-05-25 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$uNmrn0zKxy1axaFgKwqSTlqouLe34zN4GMVH3ebauKZrUbI3dyhG9','user','ak_658b5dfe1fc2fced','2023-04-03 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$VFAiqZENK66SDdXF.C..cVvyRgqzasYnusi6u.sh8r06EAE5I8QUg','user','ak_4843de425ca15bc2','2023-08-17 10:11: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=30842;

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


