-- Host: db-master-2.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=4946;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$cXfIb7YvZKJxxcy8807nydFvEFuocRdkKBmeNdWSiSfiRsP0.sF08','user','ak_11a75676f2ce79c4','2023-10-01 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$5g.o69viP6A/FEAQaO0G6/zRYfpy0wTcdf6gcuNFRjhay8HnaM1PY','user','ak_4d0249dc68a68674','2023-11-07 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$l88JsR6K0sfe8B.hQEAfF2MB.ZRDYtnR2AtkoBRAsblluyIKxdjP9','admin','ak_fcf231acc5916a59','2023-01-19 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$wqOqzdozVcO6ImBaG0ocugZbJeasdeNtP77/4GC1Sg7Bf/cNWiP6Y','user','ak_3a7411a9e09f2f0f','2023-09-09 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$UcPBrDJ56lZ277MBFm0lQYFiqZFTulBzMBOdnySRHLLGsWDuh0Zpe','user','ak_5d128599933915ec','2023-01-23 10:07:00',NULL);

