-- Host: db-master-5.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$5veenm8qV5JUzUpObvO9gxnOOsj3GKr2cBDlUMaCeoC2rQWH8i.pM','user','ak_5bf53d5e3d2412d9','2023-11-05 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$lZL6dX2UUZjV1OkDb9N3xEw6NhRvejozJ4QBvHwi7apYnjkUk1FaT','admin','ak_bea06cadb1e01c31','2023-11-17 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$LuoaglXWNIy3XX6YRz3PyZ5WsyLajC5mK/Bx6KWmLtbjT45zZo..K','admin','ak_87681fa1a7691124','2023-01-13 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$WVJP663Gp.YJ662y/z/E/Z5dmQEscPHOP3.l29b5liyHZlwQ1Vsto','user','ak_94ea6111761cac0f','2023-09-09 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$7TRqMpjqjPrSKqk.2PDJBLX0VkytIIb.RM1oOxvRY/lyXXJFPLHkD','user','ak_ef20ba50009620bd','2023-06-04 10:00:00',NULL);

