-- Host: db-master-8.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$wr8nzTiZXRLWtFif4PwnFTPEg7KDknjtfu0WnqJxoSntkhEdwHOm4','admin','ak_cecdb48716acde66','2023-10-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$mBzunubv9mYdctZOIqqUau5VsjUG4TLAdjeRhZP75eebCnYtxDHHS','admin','ak_18ada2c7b22e30fc','2023-08-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$RI.D5LTNqiRFO.ewO1tFWjXFXFSAx3zFvifngi34APLyItzkzLQo9','user','ak_30a592fdfa0391af','2023-02-07 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$99b0LiIHfXSNVMlVxoCxWbmkSMicE.8b7GWNs64GXobEYFKLMVSq8','user','ak_f367ef1bdfce78a5','2023-07-14 10:12:00',NULL);

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

--
-- Dumping data for table `sessions`
--


