-- Host: db-master-0.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=3445;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$/C0bXTVDrTdC5sBnsdkwioaxDMTuPkF8e8UQnuPzZZNhMS4MIa7CX','user','ak_38ac04a8c8387670','2023-03-22 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$vf1N6GcTCgLg51/G04pYbqeSEvKQzXx.XZiGBw.xpbKppkhFzmbZ1','admin','ak_898856a8e6a5e2fa','2023-08-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$yueg25xLOoRPtkwqAxrDpZN75VhlGDRx24oEWp7Oz.sPuLdWYXx5R','user','ak_409125c878b6d4c5','2023-01-16 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$3cWJzYJzpRPRnGZDDZgWPVq3Emcqc6tydVf1usjhNXNbVvdncnQJF','user','ak_d9308161a1909fe3','2023-09-15 10:17: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=35079;

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


