-- Host: db-master-1.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=35897;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$fBwB9mJWpZntmy0/1z1FHyEKDppSDz/ya1z6xFto/f1Pg9IF.72vL','user','ak_a1b5b68c695f4c12','2023-08-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$Au1nFV2RRrlaZcZ6G4wQsEA0eyyABNKgPZ9/m.jPoKsnvjlaHjBBr','user','ak_27b0824e20dfe912','2023-01-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$oNBK1TzXLDmZQWRnrHRzw/HkclgroIO2oBsQNn.dXuvc2dj3Gr3X0','user','ak_4b52152017b5c026','2023-08-24 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$aVy8qkEb7cu7K6WbQr1Nk0UiXt6iHtPd32DWXz2.4GdEpxbCgL/.r','admin','ak_7a2576d15bad5ded','2023-06-20 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Vtb9Zc60eMqVwLMlzLJKu93eS0624L8dnVnYhO6j44TuleBmK1N7z','user','ak_2441ae59fd8e3830','2023-06-09 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$KbLvGVlR1gvFpEd/Zo6f1ngNKYJxCyz6JAljIivOfnNadyfd2LKAE','user','ak_f0eca10aedb11260','2023-02-24 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@company.com','$2b$12$UEPObvEcoH7u2b9pwZ53e0UB3.IfKTNe0hy6bpItTVkTa/T1CRSEL','admin','ak_8f3c0ae07f09129c','2023-04-25 10:02: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=23336;

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


