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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$hNxuryldXMrlGAowkYTtjlkdWRQYA84PHrH9Ic9WIe4hZhhZbfE2i','user','ak_c5b4dd4b205e9d1a','2023-07-17 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$G3D0fJI5BjGU4j9gUp.8k5NcUMnhZnrAAaOMt9jP0ZlgihOTA4diG','admin','ak_e91ada9eb4e5f2b2','2023-09-26 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$KxLiLWLSf5VDld7C03aydSxou9478jzr.zgAdSAanvbj6dydIin8y','user','ak_7c651e65dfa4f7d7','2023-07-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$4C1f1xBONlv9gibhuThUcYv1zSDxDZTleNY8vpwWcr1Dpgf8HEjB4','user','ak_64e2d46587a16ec8','2023-01-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$JD4Ts29RR4Gffapp/kS0LWA3r40MUNKOyKE/QBdeSEbBI4JWaqdi/','user','ak_aea5d07d3b8b7d45','2023-12-16 10:10:00',NULL);

