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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$qPSKSptgmtejRdUICtNX2lcdU6vTklNctMlwDZRO0lV/iWM4JrfDV','user','ak_7b5219d5f4b8f36f','2023-12-19 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$8F/c8n1NKiZ7Q8N9D3zOxo6c7/w/zChNJjrCYr9ndnr/S0t67jqdy','admin','ak_241af28449ce0eb2','2023-08-13 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$7ol.ET1rVZ.5EQM4JzGH9hnXUegsXPojOt2Tcw7qeIwdbL52YkB4X','admin','ak_7de3d4fa841e28a9','2023-07-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$pIIJwkQE.MvNbPvW266F9cA9KA.aGUCcF0qwKKzDOhgbCesLF.lDy','user','ak_25b89382a8a1c7f0','2023-09-23 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$u8I7YnpES1eqlaKWnuTkyWT/CcpXdss6DpyuV4VWJ0cUGzG5nk4N4','user','ak_ac368366ff930455','2023-09-21 10:10:00',NULL);

