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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Hb1n8bm2y04CaFby9NkXozf1c4nr9AD4WcqpKHS2td6pSI2kB12Ly','user','ak_179e87dd01e82dfd','2023-09-14 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$ZPBhprOt9MqYIA77yRuVag/ZA.Pel.HbN9fEy7oeA4HbVCH4DkNls','user','ak_bd6ad0ca62e3d762','2023-09-23 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$LxjE67vl98EUQ5LHAqn5dKHdE9Xr9plMhd.gsIcJlV49NfWX5Lz/1','user','ak_9990faff0a7809ff','2023-09-01 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$yPgh3I3GBgNbu53K7KscZdQhy9XdfwKqGPJU/8GA4n9wCR7Seut3M','user','ak_b1bcca8153539c90','2023-11-15 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$.CPO7PVPZVDyfPer4Ap4CrLXa0YqU95dyjFCnnvrJMSTMwWzJfvZ6','admin','ak_fc5fbe316fc72b3b','2023-01-24 10:21: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=34113;

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


