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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$h9QU8SajwYWe6oxuazmUF5oy/uURZqUlfOSleJTgAd./fNjwJFuTq','admin','ak_4c0a78f672d2a438','2023-11-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$zJuxYn7UVg2Ut6zt5j24wSSdBDZwHRe5jxA.wQenJF0ntPxL.1xIl','user','ak_ad488bdccb6d80f8','2023-04-01 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$W132TOm5tBeKjuA55CEYMntPAIIXU8mR7D/ngSmfpFrsQ8N0fOEK3','user','ak_9519888eb041140b','2023-11-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$byyvpbPO1Gis9yJkKAUU1Be/fEtL0IELk7/BmVa5UH0WIPIfQrhbO','admin','ak_9f9eae20c830132e','2023-09-27 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$1Mxrd5t3xqlQ7XMXlrN/HtOYwDrD73JZlK.lPgvM64HFlJX3Lz1io','admin','ak_8a5b45247fd1ac3a','2023-07-12 10:10:00',NULL);

