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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$i2VEr860LMKAaEFgH8ECkiXF.CG/Q33wts7yCew4H.8z/C7AQBwGi','user','ak_136ff49d76a9f6de','2023-12-27 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$732RVxLEloxU5rTvt3mRQ0gZZIwvmZmTwMzlC3p.ukTbDaxjBRJPE','user','ak_cf859afa091d3998','2023-01-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$4v8MSOMr4Nj9hONx2H2/Jzct8.LkGO3TP9vb9.YDEKRawKtQuRdZD','user','ak_ee26b1a8e539710c','2023-08-05 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$kmM.SUNWWjUAHDg8uyD2D5BWf57k7yPNbVi/Mnay4UwMFbczv7aU1','user','ak_d630e0c26f431d3c','2023-06-03 10:07:00',NULL);

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

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


