-- Host: db-master-5.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=12181;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$YfOyb4m.an2JIMj04nJk8OPDcwzcg.YgFZlifbzkdkelnljsOvxUg','admin','ak_b5a9f4a3aaa2aa8d','2023-03-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$GcfixSwUvZ1012e7c2AIiIyquHNljp5Q5tWh.es05P3lh2FaXhTCz','user','ak_d152aa29d06b640b','2023-11-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$CIHtFiKcqwl1WOKVMo0o03ZT7CTLyZVlGyaTEv4OCDPwhJAUFHYjr','user','ak_d9cec19df1a62d8a','2023-09-24 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$1Gulm5EFzGnM5WtwPiLp0m.UIwuaMKxTcN.id8uyDBYYFM4zhHMXz','user','ak_aaac4424b998c355','2023-07-18 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$pBuSVPwjnY0ZAgd24CadA2MAev9TbQVb1Ltwa2R7QnbbRtN.ZIlPK','admin','ak_7b20287d42216a13','2023-09-26 10:20: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=47334;

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


