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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$u0myABeT.VhrYr6n8z8HIeGBYugo1aDbAxN0v3SFh0t9WpPHRwuQn','user','ak_6eac21f4fb7f303e','2023-09-12 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$aLBJIdiyviDArPgbfXvYVicqTRA/Lc.DaJ0i7Q.GFkrQsVOQPHJoH','admin','ak_6680f49affeee73f','2023-04-14 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$krdGNdFbg6L6YjBmxNilQF0legVjqxvZ63UqF3.ECopZgfD7poe0V','admin','ak_f84b29716ec6e316','2023-12-23 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$jOZcs1/QfLn7zVC745W/O4OBoZpgaxTVyiZe7EWfiWTPIusYiU9Bj','admin','ak_af8fd94221f10a31','2023-12-05 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$6MrG14.VSSUmSkxiU4L2UYVxFdtJCIxxWV3jXrCAFyic3QCxy98Yk','user','ak_6b6f431d904633f4','2023-11-14 10:15:00',NULL);

