-- Host: db-master-1.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$IxtnWC7Za2qv8EEoaO3BZ9h8Hcm48IhXJhnWl4uhy11NEmS9vXUiD','user','ak_575b4c3f84469e4a','2023-05-03 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$0nJgM9gW4bfPlMGWO/G/lHOp4PDlKzVMMFEFAPra4Ant52bUBNBq0','user','ak_311411bc1c078e6c','2023-01-16 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$jTL8D4DWUn0RliQHgjUlXYZ51hQY23K3yve1fP3eKXB23YoGRO1x9','user','ak_89a1194a12e0873f','2023-04-02 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$7HS82vvLa7/y2ghRnJ5axfp7XgJ31DZcaXoglQ9hOuLPWSM1IHfRu','user','ak_f72ecd81e3bffc8b','2023-12-18 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$b2QwCQVAp60.23uUtkAFdwLxxrMPcdj4ZB3eUgsAIpeJwphMzaB5.','user','ak_2c32791196239030','2023-08-04 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$Cv7X/.9lV7Gg55BdPgpyOTWOHK.K6WcxIsjCJeTsIqWNshKJskezI','admin','ak_29a7273d25fe19ae','2023-05-24 10:07:00',NULL);

