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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=27231;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$0ZWsrprfYFnyRpHNXvoKWuQ5FAlwnj53pFlc4fEHuskNOw6JBefwl','admin','ak_4f68c5dc7935cc18','2023-07-06 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$34oDXg7B5P45CvqxTu/FdKGxWAomYp.3/iE6Z5fBiKH56zV.cwskn','user','ak_5c2ad2edff267ca1','2023-06-14 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Ju.MAqStu6JvCPx1XlXFBRaorKPJLjTJTxtnk2o8iEZCpY3YFi69E','user','ak_cb893a4dd3eec34f','2023-01-12 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$pp0.G5GhmDABne15zbyBmm1MhVTSM1P1BX71M26lB/LzVJl5zWVan','user','ak_9ab8170b4f6094f2','2023-09-20 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$BgnZASztM5x0rCeD37u/.g1I3KyDMytyIlCQTL2gAxUENmWBvewnq','user','ak_2d2382ebf5e464f2','2023-03-20 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$LUEO8qV1QtTzMSWfbjGLOz1M/c6KFBzrHUHruIDLPDXyi3FQf/vgB','user','ak_9260b214c2e9bf7c','2023-02-27 10:04:00',NULL);

